jEdit Community - Resources for users of the jEdit Text Editor
Archives
Loading and then editing a file
Submitted by AlvinD on Tuesday, 16 November, 2004 - 03:43
I have a macro which will parse and modify a list of files. It works as long as the files are preloaded. However, when I use the statement "FileBuffer = jEdit.openFile(view,FilePath+File);" The file is loaded, but it is not editable from within the macro! I can use the "iseditable" method to verify that the textarea is not editable after I open the file. I have spent much time and had no luck in finding out how to make the textarea editable after using an "openFile" statement.

I'm sure the answer is simple, but I have not found it.

Any help would be appreciated.
Modified Java Commando File ( includes 1.5 ) (javac.xml v0.01 by Mark Woodward)
Submitted by Mark Woodward on Tuesday, 16 November, 2004 - 11:34
This simply adds 1.5 as a target to the java.xml commando file. I've also made it the default and rearranged the others from most recent to oldest. Drop it in the ~/.jedit/console/commando folder and restart for it to take effect.
Vim like copy character above/ below macros (copyCharMacros.zip v0.1 by Mark Woodward)
Submitted by Mark Woodward on Tuesday, 16 November, 2004 - 12:28
Two of the features in vim I find I use often is C-Y and C-E. What these do is copy either the character above the cursor (C-Y) or below it (C-E). This is a first take on that functionality in JEdit. Eg: If the line above is; System.out.println then using Copy_Char_Above (I have it mapped to CS-Y) will copy one character from the line above to the current line. If I held CS and hit Y 6 times I'd get; System. I could then write err for eg, then hold down CS-Y to complete the line; System.err.println Helpful when you have repetitive lines that you aren't likely to ever use again so theres no point assigning an abbreviation to it.
Is possible to decrease a width of gutter border?
Submitted by Anonymous on Wednesday, 17 November, 2004 - 10:19
Is possible to decrease a width of gutter border?
--
Regards, Skalex.
Nice Aqua icons for jEdit (Aqua-jedit-icons.jar vv.1.0 by ThON, with help from HYKO)
Submitted by thon on Wednesday, 17 November, 2004 - 18:54
Here is a nice (I think) collection of icons for jEdit, based on Aqua icons theme for KDE, which I've downloaded from www.kde-look.org. Enjoy... (Simply place the .jar file in the $JAVA_DIR/jre/lib/ext directory and restart jEdit)
how to highlight java code and how to get rid of the blue line
Submitted by Anonymous on Wednesday, 17 November, 2004 - 21:15
Hi!

sorry, i'm a newbie, so...
the features list "highlighting of many languages"... my java files has no different colors or highlighting at all. i installed some plugins, and it did well with html code, but not with my java code. could it be it is, because it's not named .java?

and how do i get rid of the blue vertikal line?
what is it good for?

thanks for your help!
Arne
how to highlight java code and how to get rid of the blue line
Submitted by Anonymous on Wednesday, 17 November, 2004 - 21:16
Hi!

sorry, i'm a newbie, so...
the features list "highlighting of many languages"... my java files has no different colors or highlighting at all. i installed some plugins, and it did well with html code, but not with my java code. could it be it is, because it's not named .java?

and how do i get rid of the blue vertikal line?
what is it good for?

thanks for your help!
Arne
how to highlight java code and how to get rid of the blue line
Submitted by Anonymous on Wednesday, 17 November, 2004 - 21:19
Hi!

sorry, i'm a newbie, so...
the features list "highlighting of many languages"... my java files has no different colors or highlighting at all. i installed some plugins, and it did well with html code, but not with my java code. could it be it is, because it's not named .java?

and how do i get rid of the blue vertikal line?
what is it good for?

thanks for your help!
Arne
Beanshell Plugin issue
Submitted by rmsh on Wednesday, 17 November, 2004 - 21:35
Hi "getClassPath()" function in Beanshell console is throwing the following error

Surprisingly, same command works fine in beanshell standalone.... any clues what is happening here.

Sourced file: inline evaluation of: ``getClassPath();'' : reflection error: bsh.ReflectError: Method getClassPath() not found in class'org.gjt.sp.jedit.BeanShell$CustomClassManager' : at Line: 10 : in file: getClassPath : .getClassPath ( ) Called from method: getClassPath : at Line: 1 : in file: inline evaluation of: ``getClassPath();'' : getClassPath ( ) at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:131) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at bsh.BSHAssignment.eval(BSHAssignment.java:77) at bsh.BSHBlock.evalBlock(BSHBlock.java:130) at bsh.BSHBlock.eval(BSHBlock.java:80) at bsh.BshMethod.invokeImpl(BshMethod.java:349) at bsh.BshMethod.invoke(BshMethod.java:246) at bsh.BshMethod.invoke(BshMethod.java:179) at bsh.Name.invokeLocalMethod(Name.java:915) at bsh.Name.invokeMethod(Name.java:805) at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at bsh.Interpreter.eval(Interpreter.java:641) at bsh.Interpreter.eval(Interpreter.java:731) at bsh.Interpreter.eval(Interpreter.java:720) at org.gjt.sp.jedit.BeanShell._eval(BeanShell.java:446) at console.ConsoleBeanShell.execute(ConsoleBeanShell.java:73) at console.Console.run(Console.java:412) at console.Console.access$1300(Console.java:44) at console.Console$RunActionHandler.actionPerformed(Console.java:758) at console.ConsolePane.fireActionEvent(ConsolePane.java:134) at console.ConsolePane$EnterAction.actionPerformed(ConsolePane.java:347) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571) at javax.swing.JComponent.processKeyBinding(JComponent.java:2730) at javax.swing.JComponent.processKeyBindings(JComponent.java:2765) at javax.swing.JComponent.processKeyEvent(JComponent.java:2693) at java.awt.Component.processEvent(Component.java:5265) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:668) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:916) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:794) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:632) at java.awt.Component.dispatchEventImpl(Component.java:3841) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Window.dispatchEventImpl(Window.java:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

-Ramesh
Input Method Editor for jEdit
Submitted by bibiko on Thursday, 18 November, 2004 - 10:19
Dear all,

this is only to let you know that there is a way to input foreign language scripts with jEdit.
Under https://sourceforge.net/projects/jgim/ you will find a java based customizable input editor for all java applications. If you install it and make sure that you have installed the right fonts you are able to input Chinese, Kannada, Bengali etc. It based on Yudit coming from UNIX. It is a very good solution with some disadvantages of choosing the right character but this issue stands on the ToDo list. By the way is there any chance to write with jEdit Arabic or Hebrew, i.e. is there any support for writing from right to left?

All the best

Hans
Input Method Editor for jEdit
Submitted by bibiko on Thursday, 18 November, 2004 - 10:20
Dear all,

this is only to let you know that there is a way to input foreign language scripts with jEdit.
Under https://sourceforge.net/projects/jgim/ you will find a java based customizable input editor for all java applications. If you install it and make sure that you have installed the right fonts you are able to input Chinese, Kannada, Bengali etc. It based on Yudit coming from UNIX. It is a very good solution with some disadvantages of choosing the right character but this issue stands on the ToDo list. By the way is there any chance to write with jEdit Arabic or Hebrew, i.e. is there any support for writing from right to left?

All the best

Hans
Better indenting?!?
Submitted by Anonymous on Thursday, 18 November, 2004 - 15:44
I like Jedit a lot, but I keep having trouble with the indenting. In perl, the indenting code simply does not seem to understand situations when a statement is being continued on the next line. In these cases, there should be some extra-indent (e.g. one additional indent level), but Jedit does not do that.
Deep indent does not work correctly either because it will indent way too deep in many situations.

It would really be great if this would work like in other editors, e.g. (x)emacs, where the indenter actually knows about the syntax of the language to indent and acts accordingly.

Is there a way to replace the default indenting by a plugin that would try to do it more intelligently?
How to paste strings in JEdit text area by clicking a plugin button
Submitted by Anonymous on Thursday, 18 November, 2004 - 16:06
Hi,
I'm trying to paste strings generated by my plugin in the JEdit main window.
I'm writing "something.setSelectedText()", but it arises a compiler error while importing " org.gjt.sp.jedit.textarea.* ".
What do I have to do? Or...: what's the easiest way to do what I want?

Thanks,
Mik
I/O thread blocking when there is available threads
Submitted by Anonymous on Thursday, 18 November, 2004 - 20:35
I am trying to identify or at least understand the I/O thread. When I do a search in a project, it takes some time, during that time, I cannot open a file because Jedit reports that 1 I/O operation is in progress. However when I view the available I/O threads in utilities/troubleshooting, I see that I can have up to 4. So why cannot I open a file when there is an empty I/O thread slot available ?
Do I have to tell Jedit to use threads in parallel ? Is there a setting where I can increase the number of threads ? Thanks a lot.
Uninstalling JEdit
Submitted by Anonymous on Thursday, 18 November, 2004 - 20:45
Hi There,

Was wondering what the procedure is to uninstalling jEdit on MacOS X is... the jEdit documentation relates uninstalling to Windows...


thanks
What is the best java code completion plugin
Submitted by rmsh on Thursday, 18 November, 2004 - 21:33
Hi,

I'm relatively new to jEdit, still under experimenting stage. I see more than one choice for java code completion. Which one of them is the best and works fine.

I tried codeaid and had some troubles making it work with jEdit4.2.

Thanks in advance

-Ramesh
Newbee needs help with new Mode:
Submitted by phcjpp on Friday, 19 November, 2004 - 12:23
Hi, Quick question I am trying to use a SPAN_REGEXP that really needs a regexp in the tag too and I was wondering if there is a way round this A comment starts with / on a new line and ends with a \ on a new line - if possible whitespace should be ignored e.g. (^[[:blank:]]*/[[:blank:]]*$) and should end with (^[[:blank:]]*\[[:blank:]]*$) (NOT ALLOWED!) is there a way round this ? Thanks Chris
Java syntax parsing
Submitted by Anonymous on Friday, 19 November, 2004 - 19:45
I'm trying to find a plugin that will simply parse my open .java file(s) and report (in ErrorList) whether there are syntax issues. I have a weak work-around that compiles (JCompiler) only the current buffer and then reports the errors. But this is a bit time consuming...Ideally, the plugin would parse everything open and then I could cycle through the buffers looking for the red marks to correct my errors. This would save me a nice amount of time prior to a lengthy build process.

TIA
custom classes in jcompiler
Submitted by Anonymous on Friday, 19 November, 2004 - 20:00
Hi,
im new to java and jedit(great features) my main problem is that i have to use custom classes that come with my learning script. First is there a global dir where java looks for them? Second i added the path to the classpath in jcompiler: /home/Programmierung/classes/
When i compile my helloworld:

import javakurs.io.*;

public class BeispielApp {
public static void main( String[] argv )
{

Ausgabe.println( "Hello World" );

}

}

it runs trough and dont seem to make errors, but when i wanna run my prog with the console java i get this:

Exception in thread "main" java.lang.NoClassDefFoundError: javakurs/io/AusgabeFenster at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at javakurs.io.Ausgabe.(Ausgabe.java:31) at BeispielApp.main(BeispielApp.java:7) Process java exited with code 1

I tested the same settings in eclipse and it runs fine.
this is the eclipse entry:


so what i am doing wrong?
Or is there a better way to set the classes and run/compile my stuff?

thx so far
File system browser current selected item/file?
Submitted by fwelland on Saturday, 20 November, 2004 - 02:29
jedit macro newbie; jedit user for a bit; java journeyman.

In a macro, is possible to get the currently selected item in the filesystem browser?

so in my random hacks I have gotten this..

doc = view.getDockableWindowManager();
names = doc.getRegisteredDockableWindows();

with the idea that if I had a handle of the file system browser (currently docked) then I could interrogate file system browser for the currently selected file(s) - it seems there are some getSelected methods in the VFSBrowser....on the right track?
User login
Browse archives
« November 2004 »
MoTuWeThFrSaSu
9
16
27
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   108249
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309