jEdit Community - Resources for users of the jEdit Text Editor
Archives
Project Plugin: Preview in Browser Configuration
Submitted by Anonymous on Saturday, 10 April, 2004 - 04:34
Hi-

I'm running JEdit pre11 on MacOSX.3.

I can't seem to get the Project plugin 'Preview in Browser' menu option to work.

I've tried setting the browser path to all sorts of things, including:
open (a generic 'open this file' command)
open -a /Applications/Firefox.app (a request to open a file with an application)
/Applications/Firefox.app
/usr/bin/open (the full path to open)

I keep getting 'Error starting process: Application not found'

Has anyone got this to work on MacOS 10? Any suggestions?

Thanks in advance,

Eric Everman
How to exit awt frame politely from jython
Submitted by WGW on Saturday, 10 April, 2004 - 07:20
I have been toying with java gui + jython under jedit. I found the code below as a starting point. It works!

The only problem is that when the jython "exit(1)" statement is invoked it not only exits the current (jython+java) window but jedit completely and anything jedit has spawned.

So, what I need for a well-behaved popup frame is one that will not exit jedit when I close it, but rather the frame only.

My guess is I will find the answer as I learn more Java (I'm trying to get an easy intro through jython and jedit). But if anyone has a simple solution, that would be great: I would like to have menus pop up for certain macros and this looks like a good (?) way to do it -- though I'm sure beanshell would work just as well.

(PS: I think the following code formatting gets zapped by this forum software.)



import sys,time
from java import awt

# This is an edited version of a QA tool that I wrote
# Not all the variable names will make sense in this example
# like, 'proclist' and 'job', but you can still figure it out.
#
# The app is based off of the style that wxPython uses, which makes it really easy to
# extend.
class App:

def __init__(self):

procList = []
for i in range(1,11):
procList.append("Test #"+str(i))

self.frame = awt.Frame("Perform Work for Java", visible=1)
self.mainpanel = awt.Panel(awt.GridLayout(0,2))
#added this... does not seem to work; might need to use swing
#frame.setDefaultCloseOperation(awt.Frame.EXIT_ON_CLOSE)

self.cb = {}
for p in procList:
cBox,txtField = self.choiceBox(p)
self.cb[cBox] = txtField
self.mainpanel.add(cBox)
self.mainpanel.add(txtField)

exitBtn = awt.Button("exit", actionPerformed=self.exit)

printBtn = awt.Button("Do Tests", actionPerformed=self.doTest)

self.mainpanel.add(printBtn)
self.mainpanel.add(exitBtn)

self.frame.add(self.mainpanel)
# I've found that packing the frame is a must, though I haven't seen many examples
# that use it. Maybe I'm missing something.
self.frame.pack()

def choiceBox(self,label):
checkBox = awt.Checkbox(label)
numberBox = awt.TextField()
panel = awt.Panel(awt.GridLayout(1,2))

return checkBox,numberBox

def exit(self,e):
sys.exit(1) #here is where it shuts everything down.
pass

def doTest(self,e):

# this pops up a dialog
dlg = MsgDlg("Running Tests")

for job in self.cb.keys():
if job.getState():
print job.getLabel()+" --> "+ self.cb[job].text

time.sleep(2)
# remove the dialog
dlg.frame.removeNotify()

class MsgDlg:
def __init__(self,msg):
self.frame = awt.Frame("Doing Tests", visible=1)
self.panel = awt.Panel(awt.GridLayout(1,1))

self.panel.add(awt.Label(msg))

self.frame.add(self.panel)
self.frame.pack()

if __name__ == '__main__':
# this starts the main window up
app = App()
snippets cliptext
Submitted by rene on Saturday, 10 April, 2004 - 13:24
I have jus installed jEdit , and I am-was an editplus user
I cannot find any cliptext or snippets menu in jedit, how can you install use or create one ?

thank you
VB NET
Submitted by rene on Saturday, 10 April, 2004 - 13:32
VB NET support will be a good thing
file drop down
Submitted by Anonymous on Sunday, 11 April, 2004 - 05:25
i love jedit its a great pieace of sofware. What i found realy its a bug but sumthing that should be fixed. The drop down under the main tool bar (used to select open files), the part that drops down starts at the left side of the screen. it should start at the begining of the applications left side.

btw: i have my start menu on the left side of my screen and it over-laps the dropdown. manny applications has problems like this.
ftp plugin and password
Submitted by saurya_s on Sunday, 11 April, 2004 - 14:32
Hi all
Jedit has option of opening/saving files from ftp server thru ftp plugin. Can I ask it to show me one of the server which I use most frequently by default instead of browsing thru pulldown menu and remember its password.Can I make a quick shortcut for opening/saving to that serverer something that will quickly bring up the ftp dialog box.
SS
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
File Association
Submitted by Anonymous on Monday, 12 April, 2004 - 15:55
I looked for this and couldn't find it, hopefully its not located in another section.

For those Windows users that don't want to open up JEdit explicitly and then open up the code files, you can associate your code file with the jedit.exe directly and then when you double click on the file, it will open in JEdit. To change the association, you can find this a File Explorer window->Tools->Folder Options->File Types.

I kept trying to send the code(.java) file to the jedit.jar file as an option. Probably most aren't that ignorant, but now you know.
html tag insertion tool
Submitted by eCutty on Monday, 12 April, 2004 - 18:25
hi, i'm trying to find html tag insertion plugin for jedit. the thing i'm looking for is kinda like the feature they have in EditPlus for the Windows platform. any clues on whether or not Jedit has such a feature, and how i might enable it?

thanks
noserver Argument has no effect (4.2 pre 11)
Submitted by Anonymous on Tuesday, 13 April, 2004 - 16:37
Hi-
I'm running 4.2pre11 on MacOSX 10.3. I'm trying to set up for a presentation in which I would like to have multiple instances of JE running, each with different files open (Beyond what can be done with the project plugin). To prevent multiple JE instances from being linked (ie forced to have the same files open), I'm trying to use the -noserver option. The first problem I found is that adding the -noserver flag causes this message in the activity log:

[warning] jEdit: You cannot specify both the -background and -noserver switches

This seems like a bug, since the docs state that the -nobackground option is the default, and I don't see that I have the -background option set anywhere. Attempting to work around this, I added the -nobackground option to my startup. This results in no mention in the Activity Log and 'unlinking'. It seems that the -noserver flag is ignored.

Here is the relavant snipet from the Info.plist file (inside JEdit.app - its a way of bundling java apps with all of their commandline options in OSX):

<key>Arguments</key>
<string>-noserver -nobackground</string>

Has anyone gotten the noserver argument to work? Anyone specifically in OSX or 4.2pre11?

Thanks guys-

JEdit is the best tool in my box,
Eric Everman
I can not move the jedit window
Submitted by rcen on Wednesday, 14 April, 2004 - 03:45
HI All,
I can not move/resize the jedit window anymore. I do not know what thing is wrong clicked. I am using RH7.3 Jedit 4.1 final. Please give me some hint about how to fix it. Thanks.
rcen
List_Dirty_Buffers.bsh v1.0 by Lee Turner
Submitted by lturner on Wednesday, 14 April, 2004 - 08:16
Beanshell macro to provide a simple message box telling you whether there are any dirty buffers. If all buffers are saved, a message will appear telling you there are no dirty buffers, otherwise a message will appear listing all the buffers that are dirty. This is useful if you like all available screen space to develop (no toolbars, no no docked plugins visable etc).
VOGen macro (VOGen.bsh v1.0 by Jia Zhiming)
Submitted by jiazhimi on Wednesday, 14 April, 2004 - 09:39
Basicly it helps you to generate get/set methods from java class/instance variables. Unlike the "Make Get and Set Methods" macro, the operation is over the whole buffer, so there is no need to choose which portion to operate on. Quite easy to use. enjoy. :)
mergLine macro (MergLine.bsh v1.0 by Jia Zhiming)
Submitted by jiazhimi on Wednesday, 14 April, 2004 - 10:05
The macro merg lines of text into one comma divided line similar to " in ('a','b','c')" and copy the line. It works with line containing numbers or text. so " in (1,2.2,4.35)" also possible. It is mainly to help create SQL from some existing data.
cliptext changing / creating
Submitted by rene on Wednesday, 14 April, 2004 - 15:03
I have edited the file jEdit/jars/Xinsert/htmltag.insert.xml

I have added a few items and put all in lower case

I restart jEdit and try my cliptext ... no change !!

how can you change the cliptext ?
sand create your own ?

thank you
Xinsert error
Submitted by rene on Wednesday, 14 April, 2004 - 15:22
version 4.2pre11 When I choose in the menu >> plugins > xinsert I get the following error : java.lang.ClassCastException at XTree.loadMacroVector(XTree.java:233) at XTree.init(XTree.java:204) at XTree.(XTree.java:142) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at bsh.Reflect.constructObject(Reflect.java:668) at bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:123) at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:114) at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62) 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 org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:410) at org.gjt.sp.jedit.gui.DockableWindowManager$Factory.createDockableWindow(DockableWindowManager.java:533) at org.gjt.sp.jedit.gui.DockableWindowManager.showDockableWindow(DockableWindowManager.java:742) at org.gjt.sp.jedit.gui.DockableWindowManager.addDockableWindow(DockableWindowManager.java:771) at org.gjt.sp.jedit.gui.DockableWindowManager.toggleDockableWindow(DockableWindowManager.java:817) 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.invokeObjectMethod(Reflect.java:81) at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:169) at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:120) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80) 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)
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
JEdit Syntax Package
Submitted by Anonymous on Thursday, 15 April, 2004 - 17:35
JEditSyntax on syntax.jedit.org is much outdated now, though usable (with two deprecated methods). Will current jedit syntax be available as separate component? Looking into current source, it looks like JEditTextArea is highly integrated into JEdit application - I guess there's not much folks who would want to make changes just for JEditTextArea was available as bean..
Language Pack
Submitted by littleelephant on Thursday, 15 April, 2004 - 21:02
Any one know if it's possible to add a language pack to JEdit?
Set window layout
Submitted by Anonymous on Thursday, 15 April, 2004 - 22:37
I had just downloaded JEdit. I had seen in JEdit screenshot different layout for main window that include console, file manager and so on. How can I set my window layout? I must download a plugin? and wath plugin I must download? thanks to all
User login
Browse archives
« April 2004 »
MoTuWeThFrSaSu
  4
 
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   108250
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