Executing java programs from jedit?
Submitted by Anonymous on Thursday, 7 October, 2004 - 21:29
hi. Just started Jedit. I have used textpad earlier and in it i could launch my program directly from textpad. When i used the "run program" button in textpad a command prompt opened with the output of the program. How can i do that in textpad? Is it possible? I have seen the run button in the console but nothing happens.
Hope someone can answer me
PHP getter/setter macro
Submitted by
stavros on
Thursday, 7 October, 2004 - 16:53
Hey Folks.
Over the weekend I started working on a new project and was laying the infrastructure/groundwork out for everything .. doing up the class libs and what not .. I used DB_DataObject a lot in the past to generate my db class object code, but I decided to use my own rolled DbObject class and found myself writting millions of getters/setters for my class files.
Anyway, I got bored of that and found a macro someone wrote (and is posted somewhere on the site) which generates getters/setters for a c or java file and figured, what the heck, let's tweak that for php.
So I did ... and have it working for me somehow ok .. you just highlite the vars, run the macro and it whips them out, you can even select to use javadoc style comments or not.
The original author did a great job, kudos to him/her, wherever they are ... if anyone is interested in using this hacked-for-php version, I can post it somewhere here .. there are a few idiosincrosies I guess that make it work the way I work, but it's a start at least. For instance, for some reason I my db variables/columns use_this_approach to var naming ... when I code, I use studlyCaps, so my class files look like this.
class Something {
protected $first_var; // <-- this is how it's named in the db
// and the getter/setter for that looks like
// {{{ Getters
/**
* javadoc
*/
public function getFirstVar($first_var) {
$this->first_var = $first_var;
}
// }}} End Getters
// {{{ Setters
/**
* javadoc
*/
public function getFirstVar() {
return $this->first_var;
}
// }}} End setters
} // class
hah ... interesting, eh? Don't know why I do that, but anyway ... that's how "my" .bsh macro does the getters/setters, but you can hack it pretty easily to work like you do (in a php4 style too, if necessary)... there's more work to be done to make the macro more helpful/slick but if anyone might find it helpful for now, I'll throw her up somewhere ...
-steve
Is there any way to count the number of times a character occurs in a selection?
Submitted by Anonymous on Thursday, 7 October, 2004 - 15:05
Title sums up my quesiton. I try Search and Replace and when I enter the character in the Search field and click find it ALWAYS says there is only one occurrence when I can plainly see several.
I also do not see anything in the text tools plugin or other standard JEdit functionality.
Seems like a pretty simple task. Am I missing something here?
Proper Case
Submitted by
jpbroome on
Tuesday, 5 October, 2004 - 20:41
Anyone have a macro or know of a plugin that handles more Text Case options than just UPPERCASE or lowercase? Specifically, I'm looking for "Proper Case" or "Capitalized", where every first letter in a selection is capitalized.
Here's a spiffy javascript function that does it. Anyone have a jEdit equivalent?
function toTitleJscript(str) {
return str.replace(/(s[a-z])/g,function (match) { return
match.toUpperCase() });
Thanks in advance
Odd coding style support?
Submitted by
Langman on
Monday, 4 October, 2004 - 18:08
Hi,
I just started working on a new project that is using a very unique (read: I hate it) codeing style..
Any idea how I can modify the cplusplus.xlm so that it is more friendly to this style???
int x(int i)
...{
...switch(i)
......{
......case 1:
.........return 10;
......}
...return i;
...}
(ignore the dots. They were needed to maintain the structure)
Note that the body code and the {} line up, which is different from the so called "GNU coding style". I got it working so that the '{' is indented correctly but I can't seem to prevent jEdit from indenting again for the line following the '{'. Also, I can't see how I can tell jEdit to reduce the indent level for lines following a '}'..
Any help would be much appreciated.
antialiasing GUI
Submitted by Anonymous on Sunday, 3 October, 2004 - 03:52
I just learned that Java v1.5 has a command line switch to force font antialiasing :
-Dswing.aatext=true
I tried it with jEdit 4.2 final on Win2K and it works!
OpenGL Accelerated Java2d with jedit
Submitted by Anonymous on Thursday, 30 September, 2004 - 11:33
Hi,
Has anyone managed to get an improvement with the jdk1.5 with opengl acceleration on linux or windows ?
I don't see any speed increase when I run jedit with "java -Dsun.java2d.opengl=true" on my linux box.
PS. Is there a known way to understand if opengl acceleration is being used or not ?
Thanks.
Plugin Bundle (Nightly?/Other?)
Submitted by
dogleg on
Wednesday, 29 September, 2004 - 14:46
Is there an aggregate file containing the Plugin Central plugins as a single file download?
Could really use a plugin aggregate file with all the prerequisites.
Any periodic (nightly) frequency for creating the bundle would do.
I'm working offline/wireless on a machine and do not have high speed lazy load capability per plugin.
AutoFormat ?
Submitted by
theWax on
Wednesday, 29 September, 2004 - 08:56
i have a very messy .js file.
How can I autoformat it now within jEdit?
Cheers.
jan
Working directory
Submitted by Anonymous on Monday, 27 September, 2004 - 22:09
Is there a way to get the working directory to follow the current directory in the File System Browser? I looked all through the Options, the Help and this forum for any information but could not find any. Am I blind or isn't this an option?
Saving Search Result
Submitted by
digitsnake on
Monday, 27 September, 2004 - 13:52
Can someone show me how to save the HyperSearch Result into a file?
Thanks.
Declaring Schema/DTD for XML files
Submitted by
Michael36 on
Monday, 27 September, 2004 - 10:53
Hello,
I'm not able to tell jEdit the location of the DTD of my XML document.
There is a system identifier within the XML file (...!DOCTYPE note SYSTEM "note.dtd"...). The DTD file resides in the same directory.
But nevertheless the XMLInsert module of jEdit does not make any proposals for allowed elements/tags at caret position since the DTD wasn't recogised at all.
Do I have to edit any catalog or configuration files? Who can help?
Greetings and thanks in advance,
Michael.
keyboard shortcut to switch apps doesn't work in Win
Submitted by
cssjunkie on
Sunday, 26 September, 2004 - 23:15
Is there some trick to allow me to switch apps when I'm using jedit?
Notmally a+tab will step thru the open apps in Win, but when jedit
gets in front it won't let go. Since I switch apps constantly to test
CSS problems in different browsers, this is a major hassle. I refuse
to handle the rodent every time I need to switch away from jedit.
I sure hope there is a fix for this, because otherwise it's a great
editor.
OSX file associations
Submitted by Anonymous on Saturday, 25 September, 2004 - 19:55
Since I upgraded to jedit 4.2, after I save the file, it becomes associated with jedit, how do I stop that?
thanx
Not your everday problem
Submitted by
GermanJonus on
Saturday, 25 September, 2004 - 18:51
Ok. So I feel kinda stupid, but I was programming along, when suddenly my cursor changed! I mean the cursor which represnts where you are in the text field. It went from my beloved "I" cursor, to something that looks like an underscore "_". I know this is probably a very basic problem, but I can't seem to find where I change this back. I tired Utilities>Global Options... and other ares, but couldn't find anything. I was able to switch back and forth between "_" and a block, or make it blink/not blink, but I didn't see anything else. Sorry for disturbing all you serious progammers with this, but this is starting to get really annoying for me. Any help would be...uhhh...helpful. Thanks.
Suppressing Console's standard message?
Submitted by Anonymous on Friday, 24 September, 2004 - 19:38
Let's say I have a simple macro to run a DOS command:
clearConsole ( view );
runInSystemShell ( view, "echo Hi there" );
The output that I would like to see in the Console window is:
Hi there
Instead, I get:
This shell runs operating system processes.
Press TAB with an empty command line to list built-in commands.
Run built-in with --help argument to get a brief usage message.
Run %help to view Console plugin online help.
Errors generated by compilers and some other programs are listed
for easy one-click access in the 'Plugins->Error List->Error List'
window.
Working directory is C:\Program Files\jEdit
> echo Hi there
Hi there
Process echo exited with code 0
Working directory is C:\Program Files\jEdit
Is there a way to suppress all that extraneous stuff that Console is putting out?
Thanks.
Auto-indent for XML mode?
Submitted by Anonymous on Friday, 24 September, 2004 - 13:56
jEdit XML mode is fantastic, but seems to be missing auto-indent as other modes have - am I missing something?
Sidekick / structure browser and html files
Submitted by
kimjim on
Friday, 24 September, 2004 - 10:52
Hello, I run the newest jEdit on Mac OS X 10.3.5. I have a little problem with the structure browser. It doesn't render html pages correctly if I don't close link tags within the <head> with space + /. It displays the body as a child to head if i do not close, and displays correctly if do. But space + / is not html, it's xml AFAIK, and htmltidy doesn't like it.
My doctype declaration should be correct:
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"
"http://www.w3.org/tr/rec-html40/loose.dtd">
or
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
So maybe this is some kind of settings problem? Where does side kick / structure browser store information about the different doctypes? Should I download a cataloge file for my html 40 trans documents? Where could I get such a file, and where to place it?
Or is there anything else I can do about it?
Thanks for any help, kimjim
Modifying the prefix shortcut Ctrl-E
Submitted by
TomDok on
Friday, 24 September, 2004 - 10:19
Hello all,
started using jEdit more intensively and I would like to have jEdit as much as possible the same shortcuts as Netbeans. I can modify shortcuts in jEdit, but I don't know how to change Ctrl-E in jEdit.
In jEdit Ctrl-E represents a prefix for a shortcut. Entering it in the "Specify shortcut" dialog disables the OK-button.
My question is: is it possible to modify Ctrl-E, and if so: how ?
Thanks,
Tom
FYI: Ctrl-E in Netbeans means deleteLine.
jEdit and Zope External Editor
Submitted by Anonymous on Wednesday, 22 September, 2004 - 06:28
Hi,
I'm trying to use jEdit with the Zope External Editor. However, even with the -wait option, jEdit seems to detach itself from the controlling process. Does anyone have any hints about how to get this working? Thanks. I'm running jEdit 4.2final on WinXP.