jEdit Community - Resources for users of the jEdit Text Editor
jalopy plug - in question
Submitted by trcanz on Wednesday, 28 April, 2004 - 00:09
Hi, I am trying to use the jalopy plugin for jedit 4.1.

Using version 0.3.6 of the plugin which has these jars:
11/14/2002 10:29p 905,948 jalopy-1.0b10.jar
11/14/2002 10:29p 26,050 jalopy-jedit-0.3.6.jar
11/14/2002 10:29p 89,584 jdom-1.0b8.jar
11/14/2002 10:29p 350,525 log4j-1.2.6.jar
11/14/2002 10:29p 39,099 messageview-0.1.0.jar
11/14/2002 10:29p 65,383 oro-2.0.6.jar

the (jedit) program hangs when I choose the Plugins>Format Active Buffer command.

Also, if I try to use the jars that
Plugins>Plugin Manager>Install Plugins gets for me:

jalopy.jar
JalopyPlugin.jar

I get:

java.lang.NullPointerException

at de.hunsicker.jalopy.plugin.jedit.JEditPlugin$PluginImpl.formatActive(JEditPlugin.java:463)

at de.hunsicker.jalopy.plugin.jedit.JEditPlugin.formatActive(JEditPlugin.java:162)

at java.lang.reflect.Method.invoke(Native Method)

at bsh.Reflect.invokeMethod(Unknown Source)

at bsh.Reflect.invokeStaticMethod(Unknown Source)

at bsh.Name.invokeMethod(Unknown Source)

at bsh.BSHMethodInvocation.eval(Unknown Source)

at bsh.BSHPrimaryExpression.eval(Unknown Source)

at bsh.BSHBlock.eval(Unknown Source)

at bsh.BshMethod.invokeDeclaredMethod(Unknown Source)

at bsh.BshMethod.invoke(Unknown Source)

at org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)

at org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source)

at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(Unknown Source)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1461)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1515)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:392)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:264)

at javax.swing.AbstractButton.doClick(AbstractButton.java:290)

at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:957)

at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:244)

at java.awt.Component.processMouseEvent(Component.java:3799)

at java.awt.Component.processEvent(Component.java:3628)

at java.awt.Container.processEvent(Container.java:1202)

at java.awt.Component.dispatchEventImpl(Component.java(Compiled Code))

at java.awt.Container.dispatchEventImpl(Container.java(Compiled Code))

at java.awt.Component.dispatchEvent(Component.java(Inlined Compiled Code))

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java(Compiled Code))

at java.awt.LightweightDispatcher.processMouseEvent(Container.java(Compiled Code))

at java.awt.LightweightDispatcher.dispatchEvent(Container.java(Compiled Code))

at java.awt.Container.dispatchEventImpl(Container.java(Compiled Code))

at java.awt.Window.dispatchEventImpl(Window.java(Compiled Code))

at java.awt.Component.dispatchEvent(Component.java(Inlined Compiled Code))

at java.awt.EventQueue.dispatchEvent(EventQueue.java(Compiled Code))

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java(Compiled Code))

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java(Compiled Code))

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:132)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:124)

Does anyone know how I can fix either/both of these problems so that I can use jalopy? I am not very familiar with JEdit.

Thanks in advance,
Thomas
Newbie: Printing Properties of my printer
Submitted by TUCBuckeye on Tuesday, 27 April, 2004 - 23:49
I'm new to jEdit and it looks pretty sweet...nice work!

One question I haven't been able to find an answer for so far:
- When I print something, I can select the printer, but the Properties box is grayed out. Is that a limitation or have I not set something up correctly?

Especially with code, I like to go in and "2 - Up" so that I waste less paper.

Thanks!

- Trent
jEdit 4.1 DotComplete impossible, why no SpeedJava?
Submitted by Anonymous on Tuesday, 27 April, 2004 - 21:23
Greetings,

I'd like to get a dockable view of all the methods in the current Java buffer. I noticed SpeedJava in one of the screenshots, but someone took it away. I see to use DotComplete instead. OK.

First, I don't see DotComplete in the Plugin Manager. So I go to the plugins site and start manually grabbing the painful list of dependencies for DotComplete. Now I'm stuck. DotComplete depends on AntHelper, which depends on JBrowse, which depends on jEdit 4.2. Grr.

Now what? I'd rather not upgrade to 4.2 yet. What was so wrong with SpeedJava that I can't get it any more? Is there a plugin I missed besides DotComplete that will give me a dockable view of my Java methods in the current buffer? I already tried Jane, but the view was not quite configurable enough.

Thanks for any tips,
-Dan
Mac OSX command line integration
Submitted by Anonymous on Sunday, 25 April, 2004 - 04:38
How to launch jEdit from the OSX command line? Is there a better way than executing /Applications/JEdit\ 4.2pre11/JEdit.app/Contents/MacOS/JavaApplicationStub ? I have the following function in my .bash_profile, but it doesn't pick up the path to any file I pass to it, e.g. if I type 'jedit .bash_profile' from my home directory, jEdit will try to create a new file in /Applications/JEdit 4.2pre11/. There must be a way to get this to work? I searched here and via google and was unable to find anything on the subject. Thanks for any help, and apologies for my poor bash skillz.

Here's the bash function:

jedit () { /Applications/JEdit\ 4.2pre11/JEdit.app/Contents/MacOS/JavaApplicationStub -background "$@" ; }

Using OSX 10.3.3, jEdit 4.2pre11.
Monospaced font: spacing problems
Submitted by WGW on Saturday, 24 April, 2004 - 17:14
I have been hunting the documentation to find out if I can change the display font to a monspaced font. I sometimes have fixed format text like this, which mixes spaces and alphanumeric characters:

554544 54445544455545545
55454555555555 55545555
54 45444444434343430444

The problem (which is nicely reproduced by this forum software) is that spaces are not the same size as characters, so the lines are not the same length, though in monospace they would be, as they are in the QuickNotepad (or in this forum editor box for example). If I put zeros in place of the spaces I get something evenly spaced:

5545440054445544455545545
5545455555555500055545555
5400045444444434343430444


Is there any way to change the display font? I toyed with the Whitespace plugin, but was unable to resolve the problem. I have the impression it is a question of changing the font. I thought that was possible, but now I can't seem to find the documentation on it.

Thanks for any suggestions.
Problem with the Tags plugin and PHP functions
Submitted by Anonymous on Friday, 23 April, 2004 - 11:53
I'm trying to use the Follow Tag feature to find where a PHP function is declared, but it has a problem with functions that have parameters eg foo( $bar, $room, $brawl ). It will find the file the function is located in, but not jump to the correct line, just stays on the first line.

It works fine if the function has no parameters eg foo()

It's driving me slightly mad....
auto repetition of regex-based search & replace
Submitted by Anonymous on Thursday, 22 April, 2004 - 15:43
I need to process long lists of index records (many thousands of entries), to convert from a format prepared for print publication to a database-oriented format. Specifically, where the first word(s) in a record is repeated in the following record the repetition is implied by indentation (effectively whitespace). For example:

Abadham, Harvey v. H65/24
Abarrow, Radford v. R23/47
Abbes, Claxton v. C129/19
...Kinwellmarsh v. K26/98
...Parmenter v. P40/32
Abbey, Clarke v. C114/23
...Harrison Kt. v. H95/24
...Snawsdale v. S49/3
...Tooker v. T19/22,61/127
Abbott, Antram v. A8/41
...Ashton v. A7/55
...Bacon v. B44/22
...Ballard v. B110/40
...Kt., Barnes v. B12/64
...Battersby v. B135/12

["..." = whitespace]

I can find and replace the "indent" by the required string OK, using a tagged regex string to search. But after the replace is done, the search stops and I need to click the replace button again to do the next replacement; "replace all" doesn't seem to work (maybe because the search string value is dynamic??).

I have a lot of this type of work to do, and was trying to avoid having to write code - and the approach seems almost to work, if I didn't have the problem that the search stops. I have also tried TextPad, which has the same problem, and it appears that Ultraedit will be the same.

Any ideas?

Ian Galbraith
OS X, 4.2, and the option key
Submitted by Anonymous on Wednesday, 21 April, 2004 - 02:48
Hey, all. I'm a huge jEdit fan, and have been using it for a while on my mac (running Panther, 10.3.3), but I've recently upgraded to the 4.2pres, only to find that jEdit no longer responds to shortcuts involving the option (alt) key, even simple ones built into the OS, like option-forward to go forward one word, or option-delete to delete word. I saw the changelog about remapping of keys on OS X, but is there any way to make these shortcuts work? They're standard in nigh every other application on OS X, and it's rather difficult to get used to working without them.
Vertical lines connecting curly braces
Submitted by ebaker on Tuesday, 20 April, 2004 - 16:05
I'm a newbie user of Jedit (3 days).

I noticed in some of the screen shots, on the www.jedit.org page, that vertical lines connected curly braces. However, my installed version of Jedit does not have this behavior.

How is that option set?

Thanks
Ed Baker
Abbreviation, autocorrect and apostrophes
Submitted by mbadran on Sunday, 18 April, 2004 - 13:37
Hi,

I would like to have an abbreviation that includes an apostrophe, such as "are'nt", which is to be replaced with the correct spelling of "aren't" upon expansion.

The problem is that the abbreviation engine does not seem to recognise apostrophes (in abbreviations, not expansions). I've tried escaping them as such; "\'", but that also does not work.

If there is a workaround for this, I'll be able to have jEdit autocorrect common spelling mistakes, and I'll post up my abbrev file for everyone's benefit. If not, I guess this will have to go in the Feature Requests forum.

Many thanks,
Mohammed.
debugger integration?
Submitted by Anonymous on Saturday, 17 April, 2004 - 07:43
What kind of integration is available / possible between Jedit and debuggers? I am looking for things like break-points, stepping, inspecting, etc.

Any plug-ins to make this easy?

Languages: Ruby, Java, Python.
Project viewer plugin - autorefresh
Submitted by FelhoBacsi on Thursday, 15 April, 2004 - 23:08
Hi!

I have a little problem.
I have a directory structure like this:
modules
\++module_name
\++action
\++add.php
\++view
\++add.php
\++template
\++add.tpl
The add.* files are generated from a default (action, view, template) template, and then I edit them.
My problem is, that after generation I should add all these files manually to the project. Is there any solution to automatize this?

Thx in advance,
Felho
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
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
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.
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
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
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()
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
Auto-tab
Submitted by rbrown on Thursday, 8 April, 2004 - 09:07
I've just moved to jedit from Textpad. I've been trying to find something that runs under Linux that is close enough to Textpad that I can use it. jedit appears to do most of the things that I want, however there is one thing that is really annoying me in the way that jedit works. Note: I'm using jedit primarily to develop in PHP.

Basically, it's the auto-tabbing functionality. My style of tabbing is to use tabs for indentation and spaces for alignment. For example, if I'm writing a line that declares an array with some elements, I want to put each element of the array onto a seperate line to make the code more readable. I want the elements to align vertically for easy reading. Each of these lines is tabbed to the same level as the first line, and then aligned from there with spaces. This means that anyone can view the code with their preferred tab size and everything still lines up as originally intended. If spaces or tabes are used to both align and indent, one of these conditions is not met (if you only use spaces people can't view the code in their favoured tab size: if you only use tabs things don't align in tab sizes other than the one used by the author).

Anyway, the upshot is that I end up with lines that start with a number of tabs followed by a number of spaces. The problem is that in jedit when I press return to start a new line, jedit converts most of the spaces into tabs, meaning I have to delete them and add the spaces I want manually. To make matters worse, if I press tab jedit does it again, and created the extra tabs that I don't want. Textpad would simply repeat the same tabbing as the previous line, which is exactly what I want.

I've looked through the options of jedit and can find no option to turn this off. Does anyone know if one, and if not how hard would it be to add one?

Oh, I'm using jedit 4.1 final.

Thanks a lot!
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   82347
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18494
BBEdit scheme   1.0   18115
ColdFusion scheme   1.0   18023
R Edit Mode - extensive version   0.1   17472
Advanced HTML edit mode   1.0   16205
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14292