Difference between Jedit 4.2 and 4.3pre6
Submitted by
Fabio2006 on
Thursday, 17 August, 2006 - 10:44
Hello Developpers
I have a lite Script who work fine in Jedit 4.2 but not in 4.3pre5 and not in 4.3pre6.
The Console Window open and wait but there are errors in the Command Window and in the BeanShell Window. Is there any idea what I can change?
Regrads,
Fabio
import console.Console;
{
Buffer b = view.getBuffer();
String strName = b.getName();
String strPath = b.getPath();
String strCmd = new String("java.exe -jar \"C:\\Programme\\Interlis\\ili2c\\ili2c.jar\" --without-warnings \"" + strPath + "\"");
runCommandInConsole(view, "System", strCmd);
}
1) Console Window:
[error] BeanShell: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESea
rchMatcher
[error] BeanShell: at console.StreamThread.(StreamThread.java:226)
[error] BeanShell: at console.ConsoleProcess.(ConsoleProcess.java:65)
[error] BeanShell: at console.SystemShell.execute(SystemShell.java:222)
[error] BeanShell: at console.Console.run(Console.java:429)
[error] BeanShell: at console.Console.run(Console.java:226)
[error] BeanShell: at console.Console.run(Console.java:202)
[error] BeanShell: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
d)
[error] BeanShell: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Sourc
e)
[error] BeanShell: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown S
ource)
[error] BeanShell: at java.lang.reflect.Method.invoke(Unknown Source)
[error] BeanShell: at bsh.Reflect.invokeOnMethod(Reflect.java:148)
[error] BeanShell: at bsh.Reflect.invokeObjectMethod(Reflect.java:80)
[error] BeanShell: at bsh.Name.invokeMethod(Name.java:856)
[error] BeanShell: at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
[error] BeanShell: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:1
02)
[error] BeanShell: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:4
7)
[error] BeanShell: at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
[error] BeanShell: at bsh.BSHBlock.eval(BSHBlock.java:80)
[error] BeanShell: at bsh.BshMethod.invokeImpl(BshMethod.java:349)
[error] BeanShell: at bsh.BshMethod.invoke(BshMethod.java:246)
[error] BeanShell: at bsh.BshMethod.invoke(BshMethod.java:179)
[error] BeanShell: at bsh.Name.invokeLocalMethod(Name.java:956)
[error] BeanShell: at bsh.Name.invokeMethod(Name.java:805)
[error] BeanShell: at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
[error] BeanShell: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:1
02)
[error] BeanShell: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:4
7)
[error] BeanShell: at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
[error] BeanShell: at bsh.BSHBlock.eval(BSHBlock.java:80)
[error] BeanShell: at bsh.BSHBlock.eval(BSHBlock.java:46)
[error] BeanShell: at bsh.Interpreter.eval(Interpreter.java:641)
[error] BeanShell: at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:339)
[error] BeanShell: at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:284)
[error] BeanShell: at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:210)
[error] BeanShell: at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.
java:1012)
[error] BeanShell: at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:435)
[error] BeanShell: at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandl
er.java:229)
[error] BeanShell: at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2933)
[error] BeanShell: at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditA
ction.java:224)
[error] BeanShell: at javax.swing.AbstractButton.fireActionPerformed(Unknown So
urce)
[error] BeanShell: at javax.swing.AbstractButton$Handler.actionPerformed(Unknow
n Source)
[error] BeanShell: at javax.swing.DefaultButtonModel.fireActionPerformed(Unknow
n Source)
[error] BeanShell: at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
[error] BeanShell: at javax.swing.AbstractButton.doClick(Unknown Source)
[error] BeanShell: at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown So
urce)
[error] BeanShell: at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseRelea
sed(Unknown Source)
[error] BeanShell: at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source
)
[error] BeanShell: at java.awt.Component.processMouseEvent(Unknown Source)
[error] BeanShell: at javax.swing.JComponent.processMouseEvent(Unknown Source)
[error] BeanShell: at java.awt.Component.processEvent(Unknown Source)
[error] BeanShell: at java.awt.Container.processEvent(Unknown Source)
[error] BeanShell: at java.awt.Component.dispatchEventImpl(Unknown Source)
[error] BeanShell: at java.awt.Container.dispatchEventImpl(Unknown Source)
[error] BeanShell: at java.awt.Component.dispatchEvent(Unknown Source)
[error] BeanShell: at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
[error] BeanShell: at java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)
[error] BeanShell: at java.awt.LightweightDispatcher.dispatchEvent(Unknown Sour
ce)
[error] BeanShell: at java.awt.Container.dispatchEventImpl(Unknown Source)
[error] BeanShell: at java.awt.Window.dispatchEventImpl(Unknown Source)
[error] BeanShell: at java.awt.Component.dispatchEvent(Unknown Source)
[error] BeanShell: at java.awt.EventQueue.dispatchEvent(Unknown Source)
[error] BeanShell: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unk
nown Source)
[error] BeanShell: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unkno
wn Source)
[error] BeanShell: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[error] BeanShell: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[error] BeanShell: at java.awt.EventDispatchThread.run(Unknown Source)
2) BeanShell Window:
java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESearchMatcher
at console.StreamThread.(StreamThread.java:226)
at console.ConsoleProcess.(ConsoleProcess.java:65)
at console.SystemShell.execute(SystemShell.java:222)
at console.Console.run(Console.java:429)
at console.Console.run(Console.java:226)
at console.Console.run(Console.java:202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeOnMethod(Reflect.java:148)
at bsh.Reflect.invokeObjectMethod(Reflect.java:80)
at bsh.Name.invokeMethod(Name.java:856)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
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:956)
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.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.Interpreter.eval(Interpreter.java:641)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:339)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:284)
at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:210)
at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1012)
at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:435)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2933)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:224)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
GNOME Clearlooks icon theme for jEdit (jedicons-clearlooks.jar v0.1)
Submitted by
Oswald on
Thursday, 17 August, 2006 - 20:47
This icon set is based on GNOME Icons for jEdit, but contains icons from Clearlooks icon theme, instead of GNOME default icons
Put this file in $JAVA_HOME/jre/lib/ext (I have it in /usr/java/jre1.6.0/lib/ext) and restart jEdit.
See screenshot
troubles installing on Ubuntu on PowerBook G4
Submitted by
strongclad on
Thursday, 17 August, 2006 - 23:49
Hello
I've recently installed the latest version of Ubuntu on my PowerBook G4, and I'm having issues with getting the jEdit packages from the sourceforge repositories.
I've done this on my desktop computer already (which is an x86 with Ubuntu-dapper) so I'm not completely blind at using Synaptic or apt-get.
I've followed the directions from beginning to end on how to add the repositories for apt, made sure of no misspelled words, but when I run apt or synaptic to install, they both tell me that they cannot find the repositories.
I'm not too experienced with using apt quite yet, but I've searched around the net and still can't find an answer as to why my x86 Ubuntu can reach the repositories and my PowerBook G4 Ubuntu cannot.
I would really appreciate any help with this problem. Thanks.
troubles installing on Ubuntu on PowerBook G4
Submitted by
strongclad on
Thursday, 17 August, 2006 - 23:49
Hello
I've recently installed the latest version of Ubuntu on my PowerBook G4, and I'm having issues with getting the jEdit packages from the sourceforge repositories.
I've done this on my desktop computer already (which is an x86 with Ubuntu-dapper) so I'm not completely blind at using Synaptic or apt-get.
I've followed the directions from beginning to end on how to add the repositories for apt, made sure of no misspelled words, but when I run apt or synaptic to install, they both tell me that they cannot find the repositories.
I'm not too experienced with using apt quite yet, but I've searched around the net and still can't find an answer as to why my x86 Ubuntu can reach the repositories and my PowerBook G4 Ubuntu cannot.
I would really appreciate any help with this problem. Thanks.
Difference between Jedit 4.2 and 4.3pre6
Submitted by
Fabio2006 on
Friday, 18 August, 2006 - 05:48
Hello Developpers
I have a lite Script who work fine in Jedit 4.2 but not in 4.3pre5 and not in 4.3pre6.
The Console Window open and wait but there are errors in the Command Window and in the BeanShell Window.
Is there any idea what I can change?
Regrads,
Fabio
import console.Console;
{
Buffer b = view.getBuffer();
String strName = b.getName();
String strPath = b.getPath();
String strCmd = new String("java.exe -jar \"C:\\Programme\\Interlis\\ili2c\\ili2c.jar\" --without-warnings \"" + strPath + "\"");
runCommandInConsole(view, "System", strCmd);
}
1) Console Window Errors:
[error] BeanShell: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESea
rchMatcher
...and a lot of more error lines...
2) BeanShell Window Errors:
java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESearchMatcher
...and a lot of more error lines...
Difference between Console PlugIn 4.1.2 in Jedit 4.2 and 4.3pre6
Submitted by
Fabio2006 on
Friday, 18 August, 2006 - 05:55
Hello Developpers
I have a lite Script who work fine in Jedit 4.2 but not in 4.3pre5 and not in 4.3pre6.
The Console Window open and wait but there are errors in the Command Window and in the BeanShell Window.
Is there any idea what I can change?
Regrads,
Fabio
import console.Console;
{
Buffer b = view.getBuffer();
String strName = b.getName();
String strPath = b.getPath();
String strCmd = new String("java.exe -jar \"C:\\Programme\\Interlis\\ili2c\\ili2c.jar\" --without-warnings \"" + strPath + "\"");
runCommandInConsole(view, "System", strCmd);
}
1) Console Window Errors:
[error] BeanShell: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESea
rchMatcher
...and a lot of more error lines...
2) BeanShell Window Errors:
java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESearchMatcher
...and a lot of more error lines...
explict folding mode
Submitted by
haras on
Friday, 18 August, 2006 - 17:02
how to use explict folding mode in php, i have tried almost all function in jedit and nothing happens :{
i have for example:
/**
* @name render_menu
// +{{{
* .... some other
*/
public static function render_menu() {
....code...
} //}}}
i want this to produce:
+ render_menu
when i hit + it will expand the code of this method
i have makro downloaded from this site to collapse folds on startup beginning with -{{{ and expand statring with +{{{
but it doesn't work
Damn those Pangos.
Submitted by
Modulok on
Friday, 18 August, 2006 - 18:07
I installed jEdit on Debian, no problem. When I fire up the jedit.jar through my java bytecode rpreter, it shows the jedit splash screen and then hangs. When I interrupt the process, the following error is printed to the shell I launched jedit from:
(.:26442): Pango-WARNING **: Invalid UFT-8 string passed to pango_layout_set_text()
Anyone have any ideas on how to resolve this?
-Modulok-
Open_Last_Closed_Buffer.bsh v0.1 by Jakub Roztocil
Submitted by
Oswald on
Monday, 21 August, 2006 - 09:28
Opens last closed buffer.
Jedit with Lilypond on Suse 10.1
Submitted by
marino on
Wednesday, 23 August, 2006 - 17:18
Hello everyone,
me installed jEdit4.3pre6 version and lilypond-2.8.6-1 version.
many things not works.
me can launch and use Lilipond to compile file, but internal midi player, DVI and lots of features not working.
solved something installing back version of Console.
there's a mix of plugin and program versions all working together?
all seems wonderful but not working, pity!!
thank you in advance.
Open/Save dialog keyboard focus - Is this a bug?
Submitted by
2gooder on
Wednesday, 23 August, 2006 - 17:22
Hey guys. I've been using jEdit for a few years and I alway use the latest development version. As of version 4.3pre5 I've noticed that when I open a Save or Open dialog (Crtl-S or Ctrl-O) the keyboard focus is no longer in the "File name:" text box.
The result of this is that I can no longer begin typing a name of a file when the dialog open. Instead I have to move to the mouse and click on the file name text box. It really slows me down when I am creating or opening lots of files.
Should I file this as a bug, or is this a new "feature"?
Thanks a lot,
Simon
linecomment //
Submitted by
OBI_Ron on
Wednesday, 23 August, 2006 - 20:05
Hello everyone,
I have just started using jEdit, and would like to create a new edit mode to handle Poser cr2 files. I have read thru the help docs, and am using the python.xml as a reference.
In python.xml, the following line handles comments:
PROPERTY NAME="lineComment" VALUE="#" /
So each line that begins with # is recognized as a comment line.
In a cr2 file, comment lines begin with //, and have no end of comment designation. So I tried to use the same cocept:
PROPERTY NAME="lineComment" VALUE="//" /
But I am not getting the results that I would expect. Comment lines are not recognized at all.
Can anyone shed some light on this?
Thanks for your time!
editing .wsf files
Submitted by
jeisma on
Thursday, 24 August, 2006 - 05:09
hi!
im trying to edit .wsf files but jedit cannot seem to syntax highlight codes with the "script language" sections.
it can aptly recognize .js files though.
i tried to change default edit mode to javascript, xml, html, but to no avail.
anyone have tips on how to go around this?
thanks!
joey
Info Viewer using Internet Explorer or Firefox under Windows
Submitted by
mserero on
Friday, 25 August, 2006 - 01:16
Hello,
I haven't been abble to use Internet Explorer or Firefox under Windows with Info Viewer.
I use the following command line:
start "c:\Program Files\Internet Explorer\iexplorer.exe" $u
It seems to return the content of the buffer and not the file URL. I used jedit 4.2-pre6 with Info Viewer 1.5.9.
Has anyone attempted to do the same thing?
Edit modes "FUNCTION"
Submitted by
Manil on
Friday, 25 August, 2006 - 02:30
Hi,
i want to know if it is possible to have something like this highlighted as a function:
a ();
b ();
aa ();
ababab();
<*MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="FALSE">(<*/MARK_PREVIOUS>
I know that this will highlight a function but with no space before (, i have code like that sometimes and i want to know if there is a way to highlight a function with n spaces before (
Thx a lot
substring error
Submitted by
OBI_Ron on
Saturday, 26 August, 2006 - 02:16
Hello Everyone,
I am creating a macro, using hypersearch_results_to_buffer as a starting point. I have modified the macro so far so that the path is not included. Now, I would like to strip out the line number. Using the following code:
traverseTree(javax.swing.tree.DefaultMutableTreeNode node, StringBuffer results){
if (node.getUserObject() instanceof org.gjt.sp.jedit.search.HyperSearchFileNode)
{
path = node.getUserObject().path;
match = node.getFirstChild();
while(match != null)
{
text = match.getUserObject().str;
results.append(text + "\n");
match = match.getNextSibling();
I get results like:
1770: material CabinetBase
1792: material CabinetBase_Panel_01.jpg.001
So I try to modify the block to:
text = match.getUserObject().str;
myStrLoc = (text.indexOf(":")+1);
text = text.subString(myStrLoc);
results.append(text + "\n");
match = match.getNextSibling();
However, every time I try to run the macro, I get the following error:
Sourced file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : Error in method invocation: Method subString( int ) not found in class'java.lang.String' : at Line: 37 : in file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : text .subString ( myStrLoc )
Called from method: writeHypersearchResultsToBuffer : at Line: 81 : in file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : writeHypersearchResultsToBuffer ( view )
I have tried using text = text.subString(1); and text = text.subString(1,8);
...but I get the same results.
What am I missing?? Thanks in advance for your help!!
TaskList plugin:How make it work with text-files?
Submitted by
mabra on
Saturday, 26 August, 2006 - 18:21
Hi All!
I just wished to use the TaskList with some simple "Notes" files, with "*.txt" extension, but I cannot get it working. My Task's settings normally work with all my other file-types. I recognized, that text-files were not checked in the MODEs settings and I checked it. I also tried to re-start JEdit.
Nothing seems to help. Are there known issues or do I have possibly overseen somethink?
Any help is very welcomed!
Best regards,
Manfred
Including plug-ins in install
Submitted by
adxp on
Monday, 28 August, 2006 - 03:29
Hey,
I've customised a few pre-existing jEdit plug-ins, and I'd like to distribute them within my organisation by having the installer copy them to the plug-in directory automatically. Is there any easy way of accomplishing this? Also, in a similar vein, is there any good way of defining default perspective.xml settings?
Cheers, -adxp
Regular Expressions in 4.3pre6
Submitted by
zodiac_hh on
Monday, 28 August, 2006 - 07:46
Hi,
the regular expressions search and replace doesn't work here in version 4.3pre6 (fresh install). It doesn't match the specified regexp and it produces 100% cpu loads. For eample I often have to add ; to EOLs for SQL generation. So I use $ as the search term and ; as replacement string. It doesn't match anywhere, although there are 20 lines of ASCII, and it takes a minute or so to complete, using all of the CPU. Other regexp I tried also don't match. I had to switch back to 4.3pre4; here everything works fine. Is this related to the replacement of the regexp engine?
André
java.lang.RuntimeException: Invalid screen line count: 0
Submitted by
oimara475 on
Tuesday, 29 August, 2006 - 20:16
Hi,
I am trying to run a very simple macro, which should find duplicated
lines and delete the second one.
textArea.goToBufferStart(false);
SearchAndReplace.setSearchString("(^
LK-\\d+)(.+$\\n)([\\w\\W]*?)(^ LK-\\d+)\\2");
SearchAndReplace.setAutoWrapAround(true);
SearchAndReplace.setReverseSearch(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.setReplaceString("$1$2$3");
SearchAndReplace.setBeanShellReplace(false);
while (SearchAndReplace.find(view) == true)
{
textArea.goToBufferStart(false);
SearchAndReplace.replaceAll(view);
}
While the macro is executing, the following error occurs, several times.
java.lang.RuntimeException: Invalid screen line count: 0
at
org.gjt.sp.jedit.textarea.DisplayManager.getScreenLineCount(DisplayManager.java:187)
at org.gjt.sp.jedit.textarea.FirstLine.physDown(FirstLine.java:167)
at
org.gjt.sp.jedit.textarea.DisplayManager.setFirstPhysicalLine(DisplayManager.java:621)
at
org.gjt.sp.jedit.textarea.JEditTextArea.setFirstPhysicalLine(JEditTextArea.java:545)
at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(JEditTextArea.java:767)
at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(JEditTextArea.java:673)
at
org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:641)
at
org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:498)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
(...)
The same problem with this macro:
textArea.goToBufferStart(false);
SearchAndReplace.setSearchString("^( LK-)(\\d+)");
SearchAndReplace.setAutoWrapAround(false);
SearchAndReplace.setReverseSearch(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.setBeanShellReplace(true);
SearchAndReplace.setReplaceString("_1 +
(textArea.getSelectionStartLine() - 2)");
var n = textArea.getLineCount();
for (i = 0; i <= n - 2; i++)
{
SearchAndReplace.find(view);
SearchAndReplace.replace(view);
}
Has anybody got a hint, what the problem might be?
Martin