jEdit Community - Resources for users of the jEdit Text Editor
JEdit 4.2 pre11 and Background plugin
Submitted by rharlos on Sunday, 11 April, 2004 - 19:55
When I try to enable or disable the Background plugin via JEdit's Plugins menu, the following BeanShell error message appears:

~~~ begin error text:
java.lang.NoSuchMethodError: org.gjt.sp.jedit.textarea.JEditTextArea.getFoldVisibilityManager()Lorg/gjt/sp/jedit/textarea/FoldVisibilityManager;
at background.BackgroundHighlight.updateTextArea(Unknown Source)
at background.BackgroundHighlight.toggleHighlightEnabledFor(Unknown Source)
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:149)
at bsh.Reflect.invokeStaticMethod(Reflect.java:100)
at bsh.Name.invokeMethod(Name.java:872)
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:171)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2882)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.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$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.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)
~~~ end error text.

When I press the error dialog's "ok" button, only the area of the JEdit window that was covered by the error dialog has been cleared of the background image. If I first drag the error dialog box all over the JEdit window, I can effectively remove any trace of the image so that when I press the error dialog's "ok" button, the desired state of no background image results.

Anyone else experience this? Find a workaround or fix?

Richard
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Zodiac escort service
by Anonymous on Wed, 30/03/2005 - 18:36
Our escort service allows you to experience encounters with females or males of different zodiac signs.Each of our escorts has its own personality for you to discover.Come in, visit our site read your erotic horoscope and see who could be your best companion.
Background Plugin Error since jEdit 4.2
by fireparser on Tue, 13/04/2004 - 09:40
Hi, Richard.

The reason why the BackGround plugin throws an error here is because the FoldVisibilityManager has been removed in 4.2. It is needed by the plugin to determine the area of the textfield which should be repainted (by means of the getFirstVisibleLine() and getLastVisibleLine() methods of the FoldVisibilityManager).
This functionality is now provided by the DisplayManager.

I fixed it and will send a source patch to Andre Kaplan.
Greetings.
 
This bug has been fixed in version 1.0.0 of the Background Plugi
by hawkeey on Sun, 11/02/2007 - 19:31
This problem has been fixed in version 1.0.0 of the Background Plugin updated on February 7th, 2007 for versions 4.2 or higher.

http://plugins.jedit.org/plugins/?Background

http://jedit.svn.sourceforge.net/viewvc/jedit/plugins/Background/tags/Background-1.0.0/

Last prior release was 0.2.2 commited on March 2nd, 2002.
 
Source Patch
by Anonymous on Mon, 16/08/2004 - 10:54
Can you release the source patch here possibly, or make it available for download?
 
Changes into the source
by jcso01 on Sat, 23/10/2004 - 19:29
Hi there:

To correct this based in the comments from Andre, I just dowload the source code and modify the BackgroundHighlight.java file changing all the references to FoldVisibilityManager to DisplayManager, this is I change the import and the updateTextArea method, create the jar and thats all.
 
If would be great if you subm
by Anonymous on Sat, 23/10/2004 - 22:39
If would be great if you submitted your changes to devel@jedit.org (as a patch), or better yet, asked for commit access to update CVS and did a new release -- that way everyone would benefit!
 
4.2Final still has this bug
by Anonymous on Wed, 01/12/2004 - 03:03
As far as I can tell, JEdit 4.2Final still has this bug preventing Background plugin from functioning.
 
jEdit 4.2 does not have a bug
by Anonymous on Wed, 01/12/2004 - 15:16
jEdit 4.2 does not have a bug preventing the Background plugin from working. The Background plugin just hasn't been updated for 4.2.

-Ollie
 
main
by Anonymous on Wed, 01/12/2004 - 07:25
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293