|
From: mike d. <md...@je...> - 2002-08-12 23:51:10
|
begin Phillip Richdale quotation: > Sourced file: module-edit.bsh : Error in method invocation: No args > static method selectAll() not found in > class'org.gjt.sp.jedit.textarea.JEditTextArea' : at Line: 17 : in > file: module-edit.bsh : JEditTextArea .selectAll ( ) selectAll() is an object method, not a class (static) method. Thus, you can't call it with ClassName.method(); you need to have an instance of the class first. Fortunately, all macros are provided with an instance variable called "textArea" that points to the current text area while the macro is being executed. So, all you have to do is change "JEditTextArea.selectAll()" to "textArea.selectAll()" to fix that error. Since it doesn't seem like you know the difference between members of an class instance (non-static fields and methods) and members of that instance's class (static fields and methods), I suggest you find and read a basic Java tutorial before confusing yourself too much more with the particular issues involved in working with jEdit's APIs. -md |