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.
Load Classes To Instantiate (Load_Classes2Instantiate.bsh v1.1 by Jakub (Kuba) Holy)
Submitted by
malyvelky on
Sunday, 6 February, 2005 - 13:57
Load compiled classes not on the class path whose instances you want to create.
This macro is useful for users of BeanShell - it defines a function that loads compiled classes and returns them in a hashtable.
Load classes given by the user into a Hashtable mapping full class name to Class. Either all classes under a given directory are loaded (see loadAllClassesRecurs( packageBaseDirName )) or the user is presented with a browser to select the classes to load (ctrl+click for multiple selection!!!; see loadClassesWithBrowser(view)) and then is asked to say what's the directory part of the path and what's a fully qualified name of one of the selected classes.
USAGE:
- Open the macro in a buffer and evaluate the buffer in beanshell to make the functions available
- theClassHashtable = loadClassFromFile();
- myClass = theClassHashtable.get("mypackage.MyClass");
- a) - no-argument constructor:
myObj = myClass.newInstance();
- b) - constructor taking an integer and string:
myObj = myClass.getConstructor(new Class[]{Integer.TYPE, String.class})
.newInstance( new Object[]{ 5, "xx" });
Notice: This macro is not intended to be run directly. Instead, you open it in a buffer, evaluate it and use its methods from beanshell.
See the source file for an example of a script to setup instances of classes I want to test, for help with file browser and additional info. Inside I refer to this script under the name Load_Classes2Instantiate while your is probalby named Load_Classes_To_Instantiate
CHANGELOG:
Updated the example script to load & instantiate classes to test.
Ruby Edit Mode - Minor correction (ruby.xml v0.6 by Karl von Laudermann)
Submitted by
doodpants on
Monday, 7 February, 2005 - 06:07
Fixed misspelling of $LOAD_PATH, so it now highlights properly.
Insert Newline and Indent
Submitted by Anonymous on Monday, 7 February, 2005 - 16:53
Am I missing some cofig choice regarding "Insert Newline and Indent"? If I space over, say 10 spaces, enter 'x' then , the following line contains 2 tabs and 2 spaces. Was expecting it to have 10 spaces. It appears some feature I'm not aware of is automatically converting spaces to tabs during the Indent. I don't want "Soft Tabs" as I want a tab to be a tab; but neither do I want spaces to become tabs.