jEdit Community - Resources for users of the jEdit Text Editor
Archives
Help, my plugin creates two instances of jedit
Submitted by colinc on Wednesday, 2 February, 2005 - 00:13
I am having some strange problems trying to get my plugin to work.

It runs OK, but for some reason when you restart jedit the plugin causes two instances of jedit two run; one with the plugin running and docked, the other without.

The plugin is set to defer on startup , but that seems to be ignored.

I do the set up in the constructor for the main class. From what I can see in the docs it looks like I should actually be doing the startup from start() and stop() methods in the mainPlugin.class . But I'm not certain how that class is going to be able to find the main class (ie. the dockable window). Or even if that is what's causing my problems.

I'm not sure what I'm doing wrong, any ideas greatly appreciated!

Thanks, Colin
search on a php var
Submitted by Anonymous on Wednesday, 2 February, 2005 - 08:57
hello all,

i ve got problem to write the topic ( because of the echo(''); ) so here is a link where i explain it:

http://lycoch.free.fr/macro.htm


thanks
Method Follow
Submitted by Anonymous on Wednesday, 2 February, 2005 - 23:01
Is there a way to "goto" a method from another class. For examle in the foo class below is the a way to automagically click on b.name and have it open the Bar.java file and position at the name method?

public void something() {
Bar b = new Bar();
String s = b.name();
}
file premission
Submitted by Anonymous on Thursday, 3 February, 2005 - 01:20
when I save file in my sambar drive the permission always change to 700, but I am writing php, so every time I test I need to chmod again. How to solve this problem
file premission
Submitted by Anonymous on Thursday, 3 February, 2005 - 01:20
when I save file in my sambar drive the permission always change to 700, but I am writing php, so every time I test I need to chmod again. How to solve this problem
file premission
Submitted by Anonymous on Thursday, 3 February, 2005 - 01:23
when I save file in my sambar drive the permission always change to 700, but I am writing php, so every time I test I need to chmod again. How to solve this problem
question about jedit setting
Submitted by Anonymous on Thursday, 3 February, 2005 - 08:21
if I want to clone my jedit setting to other computer, which files should I copy? (Including setting for plugin)
thanks
question about jedit setting
Submitted by Anonymous on Thursday, 3 February, 2005 - 08:22
if I want to clone my jedit setting to other computer, which files should I copy? (Including setting for plugin)
thanks
question about jedit setting
Submitted by Anonymous on Thursday, 3 February, 2005 - 08:22
if I want to clone my jedit setting to other computer, which files should I copy? (Including setting for plugin)
thanks
question about jedit setting
Submitted by Anonymous on Thursday, 3 February, 2005 - 08:22
if I want to clone my jedit setting to other computer, which files should I copy? (Including setting for plugin)
thanks
question about jedit setting
Submitted by Anonymous on Thursday, 3 February, 2005 - 08:22
if I want to clone my jedit setting to other computer, which files should I copy? (Including setting for plugin)
thanks
Edit Mode Priorities
Submitted by Anonymous on Friday, 4 February, 2005 - 08:34
Hi, if there is a clash with file extensions (in my case .pl - perl and prolog), is there a way of specifying which takes priority? In this case, the default is the perl edit mode, however I would like it to be prolog. Adding an entry into the catalog file simply stating that .pl should be prolog did not resolve the matter.

Thanks,
Mike
unescape a unicode escape sequence
Submitted by Anonymous on Friday, 4 February, 2005 - 16:27
Hi, I'm trying to convert unicode escape sequences to characters. Can someone recommend a good strategy for writing a macro ( or a BeanShell snippet for use in Search Replace dialog? )?

Basically I want to search for this pattern:

(\\u00[[:alnum:]][[:alnum:]]) which matches things like \u00E9

and I want to replace it with:

new Character( $1 ); where $1 is the match from the pattern search.

Is there a way to do this using SearchReplace? Or do I need to iterate through the lines of the current buffer and do replacements on each line?

Thanks for any tips. jEdit Rules my world!!

-Travis McCauley
Toronto
error when opening multiple files, jedit 4.2 xp sp1
Submitted by Anonymous on Friday, 4 February, 2005 - 18:16
i installed jedit 4.2 and have the launcher from www.mbisping.de/jedit/launcher.html on xp sp1

i have been able to associate various file extensions to open in jedit by default. i also went through the registry and made sure any reference to jedit now refers to the launcher: "c:\program files\jedit 4.2" -reuseview "%L"

this works well when i open one file. when i open a second file, whether by double clicking the icon or using the context menu, i get the errors pasted below. does anyone know how i can fix this?

[error] EditBus: Exception while sending message on EditBus:
[error] EditBus: java.lang.NoSuchMethodError: org.gjt.sp.jedit.EBMessage.getSource()Lorg/gjt/sp/jedit/EBComponent;
[error] EditBus: at bufferselector.BufferSelector.handleMessage(Unknown Source)
[error] EditBus: at org.gjt.sp.jedit.EditBus.send(EditBus.java:148)
[error] EditBus: at org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:117)
[error] EditBus: at org.gjt.sp.jedit.View.setBuffer(View.java:967)
[error] EditBus: at org.gjt.sp.jedit.jEdit.openFiles(jEdit.java:1365)
[error] EditBus: at org.gjt.sp.jedit.EditServer.handleClient(EditServer.java:252)
[error] EditBus: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] EditBus: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[error] EditBus: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[error] EditBus: at java.lang.reflect.Method.invoke(Unknown Source)
[error] EditBus: at bsh.Reflect.invokeOnMethod(Reflect.java:149)
[error] EditBus: at bsh.Reflect.invokeStaticMethod(Reflect.java:100)
[error] EditBus: at bsh.Name.invokeMethod(Name.java:872)
[error] EditBus: at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
[error] EditBus: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
[error] EditBus: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
[error] EditBus: at bsh.BSHAssignment.eval(BSHAssignment.java:77)
[error] EditBus: at bsh.Interpreter.eval(Interpreter.java:641)
[error] EditBus: at bsh.Interpreter.eval(Interpreter.java:731)
[error] EditBus: at bsh.Interpreter.eval(Interpreter.java:720)
[error] EditBus: at org.gjt.sp.jedit.BeanShell._eval(BeanShell.java:446)
[error] EditBus: at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:410)
[error] EditBus: at org.gjt.sp.jedit.EditServer$1.run(EditServer.java:343)
[error] EditBus: at java.awt.event.InvocationEvent.dispatch(Unknown Source)
[error] EditBus: at java.awt.EventQueue.dispatchEvent(Unknown Source)
[error] EditBus: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
[error] EditBus: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[error] EditBus: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[error] EditBus: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[error] EditBus: at java.awt.EventDispatchThread.run(Unknown Source)
ProjectViewer: No easy way to start an instance of it?
Submitted by malyvelky on Friday, 4 February, 2005 - 22:06
Hi, until recently I wasn't able to use ProjectViewer because there was no way to start it. There is no menu entry 'Start Project Viewer' or "New floating P. W,'. Finally I discovered I can use the plugin's actions 'Project Viewer (new floating instance' and 'Project Viewer (toggle)' to add them to the main jEdit context menu and start it from there. But I'm sure this is not the normal way. Is there something missing in my ProjectViewer's menu or is this normal? Thanks! /Kuba
Impossible to listen to keys typed in 1 buffer?
Submitted by malyvelky on Saturday, 5 February, 2005 - 03:43
Hi,
I need to get notified whenever a user types a (word constituent) key in a particular buffer because I want to make a text autocompletion feature. But so far I wasn't able to figure out how to do it. I'm only interested in keystrokes in the given buffer. 1. If I use view.setKeyEventInterceptor I grab keys from the whole view and not only the buffer (i.e. the text area) and, moreover, I prevent them from being processed further even though I call view.processKeyEvent afterwards. 2. I tried to add my listener to the textArea ( view.getTextArea() ) but there seems to be only one text area common to all buffers because when I registered it in my constructor with view.getTextArea() the listener received keys no matter what was the active buffer at the moment.
I'd very appreciate if you could advice me how to manage to listen to keys only from one buffer. Thanks! /Kuba
JDoc usage question
Submitted by Anonymous on Saturday, 5 February, 2005 - 04:33
I'm having a problem using JDoc. JDoc seems to apend a "@" character to the front of the Source File Names. I've tried several different combination of paths and no paths, wildcard and specific file names butcould never get it to work (javadoc rejects the "@" character).

Any help would be GREATLY appreciated.

--Greg
Beanshell: How to load/define a class?
Submitted by malyvelky on Saturday, 5 February, 2005 - 14:51
Hi, I'm using beanshell in my jedit development to test my classes. If I compile the class how can I load it into beanshell so that I could instantiate (without an URLClassLoader and that stuff)? The original beanshell let you load a class but the necessary package bsh.classpath is not in jEdit. Thanks!
iEdit Launcher-like program (doesn't need .NET) (windows_runjedit.zip v1.0 by Kuba)
Submitted by malyvelky on Saturday, 5 February, 2005 - 15:00
Do you miss jEditLauncher? Use RunjEdit!

PURPOSE
--------
This tiny program runs jEdit and gives it over any command-line parameter such as filenames. You can use it to open files in jEdit. For example you can associate some file extension such as .java with it or you can create a link to it from your directory C:\Documents and Settings\\SendTo so that you can open any file in it via the context menu "Send To".

It runs jEdit with the option -reuseview thus opening a file in an existing instance of jEdit unless jEdit is not yet running.

REQUIREMENTS
-------------
1. The program must be in the same directory as jedit.jar because it looks there for it (unpack the zip and move runjedit.exe to wherever your jEdit is.
2. You Java executable must be named javaw.exe and it must be on the system %PATH%

(To modify the PATH variable right-click on "My Computer" on the desktop and select "Properties". In the System Properties window click on the "Advanced" tab. In the Advanced section click the "Environment Variables" button. If you're an Admin edit the variable PATH otherwise add a new user variable called PATH with the value (modified for your computer):
C:\my\path\to\dir\with\javaw.exe;%PATH%
and log out and back in again.)

3. Runjedit have only been tested under Windows 2000/XP but hopefully it runs elsewhere too.

DEVELOPMENT
------------
Runjedit was developed with Dev-C++ but except for the icon it's an ordinary C++ program not bound to Dev-C++.

BUGS
-----
If you find any bugs let me know to maly.velky@email.cz

PS: I've realized that somebody else has published something similar a few days ago and it might be better but since it requires .NET I do release this for those who haven't it.
Words disappearing
Submitted by Anonymous on Sunday, 6 February, 2005 - 00:16
I'm having trouble when ever I type the words 'in', 'and', as well as 'or' they disappear into a little box. Can somebody tell me what setting I need to change?

Thank you.
User login
Browse archives
« February 2005 »
MoTuWeThFrSaSu
  6
12
14
 
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   108249
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