Word separation in bumpyCaps strings
Submitted by Anonymous on Sunday, 10 April, 2005 - 16:45
bumpyCaps are a very common convention for variable names etc. It would be cool if jEdit offered the option of separating words based on capitalization as well. "bumpyCaps" would then be two words.
If implemented, this option should probably be relative to the edit mode and, of course, optional.
Changing the root menu in Views
Submitted by Anonymous on Monday, 11 April, 2005 - 16:58
Hi,
I want to
1) reorganize the root menu that all views see in my jEdit instance.
Or, at the very least,
2) add new root menus.
Is there a standard way to do this without re-building the jar file? I think the most extensible approach to #2 would be to install a user space actions.xml. Is there a way to do this?
Is there a sanctioned way to do #1?
I could also see doing it in code using statements such as
view.getJMenuBar().add(new JMenu(...));
but presumably I should do this as a plugin and respond to edit bus messages so that new views also get the new menus, and I should use the actions API so that actions get installed and called.
It seems like a lot of work -- I would imagine that someone has a document or test case that shows the steps. Does anyone have any pointers in this direction?
Thanks!
Laramie
Copying a line
Submitted by Anonymous on Tuesday, 12 April, 2005 - 21:59
Hi there!
Is there any way how to make jEdit to copy a whole line on Ctrl+C when no text is selected?
Thanx!
problems with JavaDoc plugin
Submitted by Anonymous on Wednesday, 13 April, 2005 - 08:34
Doesn't seem to be working at all. Just outputs a command line to the JDoc window in the plugin but doesn't seem to act on the command line. No error messages outputted.
Also the commandline has a trailing @ in front of the filenames to be javadoc'd.
Any ideas?
turning off auto indent (or some features)
Submitted by
eric_mahurin on
Wednesday, 13 April, 2005 - 13:50
How do I turn off auto-indent? Or better yet just stop it reindenting a line after the fact (except when there is nothing on the line to begin with).
Specifically, I'm coding in ruby right now which only occasionally uses {}, but almost invariably does something I don't want as soon as I type "{". I don't ever want it to reindent a line when I type "{". I do want it to indent on lines a "{". I do want it to unindent on an empty line when I type "}".
If I can't get good behavior, I would rather just turn off auto-indent.
I just downloaded 4.3pre2 and am still having indent problems (as I always have, but it is more pronouced in Ruby code).
jEdit in linux distro
Submitted by Anonymous on Wednesday, 13 April, 2005 - 17:12
My friends are making a live Linux distro for our faculty, and they need a good universal programming editor that is not too heavy for live distro. So I recommended jEdit with several plugins as a good choice. My friends are now fascinated with jEdit and it will be a default editor of new distro and a lot of students will use the best editor ever made.
php parser doest't parse (sometimes)
Submitted by Anonymous on Wednesday, 13 April, 2005 - 20:01
Hi there,
some of my php files don't get parsed by sidekick/phpparser.
Are there any rules I have to follow when writing php code to get it parsed?
Thanx,
Jiri
No backquotes
Submitted by Anonymous on Thursday, 14 April, 2005 - 17:14
Hi,
On my belgian keyboard, I normaly have to use the <alt-gr>+µ key combinaison to get the backquote character (`). But I can't get it with jEdit... So I can't accentuate capital letters (ÀÈÌ...) nor backquote field names in MySQL queries. The only solution I found is to cut and paste these characters from another application: painful!
Any way to solve this problem?
OS: WinXPproSP2
jEdit: 4.2
keyboard: BE
Best Editor of the world
Submitted by Anonymous on Friday, 15 April, 2005 - 07:07
Hi,
just to say that jEdit is the best editor I've ever used;
the plugins are also very helpful.
It's great to see the power of java.
jEdit's adorer
installing with FC4 x86_64
Submitted by Anonymous on Saturday, 16 April, 2005 - 22:57
Hey,
I'm not having any luck installing or compiling jEdit with FC4 Test 1 (3.90) on amd x86_64. I tried the development and stable versions, but both had the same errors. I also tried installing the packages from JPackage, but I got the same errors.
I'm using:
java version 1.4.2
gij (GNU libgcj) version 4.0.0 20050405 (Red Hat 4.0.0-0.40)
When launching, I get:
[me@localhost Desktop]# java -jar jedit42install.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib64/libgcj.so.6.0.0)
at java.awt.EventQueue.invokeLater(java.lang.Runnable) (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.SwingUtilities.invokeLater(java.lang.Runnable) (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.RepaintManager.addInvalidComponent(javax.swing.JComponent) (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JComponent.revalidate() (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JComponent.setOpaque(boolean) (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JPanel.JPanel(java.awt.LayoutManager, boolean) (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JRootPane.createGlassPane() (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JRootPane.getGlassPane() (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JRootPane.JRootPane() (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JFrame.createRootPane() (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JFrame.getRootPane() (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JFrame.frameInit() (/usr/lib64/libgcj.so.6.0.0)
at javax.swing.JFrame.JFrame() (/usr/lib64/libgcj.so.6.0.0)
at installer.SwingInstall.SwingInstall() (Unknown Source)
at installer.Install.main(java.lang.String[]) (Unknown Source)
at .main (/usr/lib64/libgij.so.6.0.0)
at .__libc_start_main (/lib64/libc-2.3.4.so)
Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit not found in gnu.gcj.runtime.SystemClassLoader{urls= [file:jedit42install.jar], parent=gnu.gcj.runtime.VMClassLoader{urls=[core:/], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib64/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib64/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib64/libgcj.so.6.0.0)
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib64/libgcj.so.6.0.0)
...17 more
When compiling, I get several errors. Here are a few:
[javac] Compiling 3 source files to /home/justin/Desktop/jEdit
[javac] ----------
[javac] 1. WARNING in /home/justin/Desktop/jEdit/org/gjt/sp/jedit/help/HelpViewer.java
[javac] (at line 29)
[javac] import javax.swing.text.html.*;
[javac] ^^^^^^^^^^^^^^^^^^^^^
[javac] The import javax.swing.text.html is never used
[javac] ----------
[javac] ----------
[javac] 2. WARNING in /home/justin/Desktop/jEdit/org/gjt/sp/jedit/help/HelpViewer.java
[javac] (at line 47)
[javac] public class HelpViewer extends JFrame implements EBComponent
[javac] ^^^^^^^^^^
[javac] The serializable class HelpViewer does not declare a static final serialVersionUID field of type long
[javac] ----------
[javac] ----------
[javac] 3. ERROR in /home/justin/Desktop/jEdit/org/gjt/sp/jedit/help/HelpViewer.java
[javac] (at line 370)
[javac] if(evt instanceof HTMLFrameHyperlinkEvent)
[javac] ^^^^^^^^^^^^^^^^^^^^^^^
[javac] HTMLFrameHyperlinkEvent cannot be resolved to a type
[javac] ----------
[javac] 4. ERROR in /home/justin/Desktop/jEdit/org/gjt/sp/jedit/help/HelpViewer.java
[javac] (at line 372)
[javac] ((HTMLDocument)viewer.getDocument())
[javac] ^^^^^^^^^^^^
[javac] HTMLDocument cannot be resolved to a type
[javac] ----------
[javac] 5. ERROR in /home/justin/Desktop/jEdit/org/gjt/sp/jedit/help/HelpViewer.java
[javac] (at line 374)
[javac] (HTMLFrameHyperlinkEvent)evt);
[javac] ^^^^^^^^^^^^^^^^^^^^^^^
[javac] HTMLFrameHyperlinkEvent cannot be resolved to a type
The list goes on... 8 errors, 40-some warnings. The src rpm from JPackage yielded similiar results.
Any ideas on how to get it working?
Thanks in advance!
Justin
(Tried to register on forum, but it didn't send me the email)
abbrevations and german keyboard
Submitted by Anonymous on Sunday, 17 April, 2005 - 08:15
Hallo All,
with my german keyboard, the shortcut for abbrevations (Control + SEMICOLON) doesn't function.
Trying abbrevations from within the menu, there's no problem.
So any hints, where i can change the shortcut for abbrevations ?
Thanks,
KS
Newbie: Can't get CodeLint to work or maybe I don't know how to use it!
Submitted by Anonymous on Monday, 18 April, 2005 - 04:11
Hi,
Just installed jEdit 4.2:
[message] Log: java.version=1.4.2_05
[message] Log: java.vm.version=1.4.2_05-b04
[message] Log: java.runtime.version=1.4.2_05-b04
[notice] jEdit: jEdit version 4.2final
And also CodeLint 0.3.
I have a few "C" files open and to run CodeLint, I go to Plugins->CodeLint->Lint Source Code.
However, nothing happens. I even set the CodeLint option for AntiC/jLint to the path of the source files I'm working on. Nothing happens.
Does the output of CodeLint get placed somewhere special?
Thanks very much for your help.
Pretzel.
Fedora Core 3 with jEdit work great: here is how
Submitted by Anonymous on Monday, 18 April, 2005 - 13:14
I posted this message as a reply to a different subject, and I heard that some people were having problems finding it so here it is:
I have never had a problem with jEdit and Fedora Core 3, any other Java app, or any Linux distro + Java for that matter. And you won't either.
Just unpack the JDK into whatever directory you feel like it.
For this example I am gonna say that I decided to unpack the JDK under /home/java. And no, I did not use the rpm. Just go to http://java.sun.com/j2se/1.5.0/index.jsp (pay a visit to http://www.java.com/en/ to see some cool java stuff) and get the .bin file, chmod to 755, run and unpack. Then copy to wherever place you want. Get the JDK not the JRE. It's bigger, meaner and better (who knows, someday you may want to cook that Java app that will get Microsith out of business --if the mighty Linux does not do that first, of course).
Make sure that your ~/.bash_profile has a line like:
PATH=$HOME/bin:$PATH
and not
PATH=$PATH:$HOME/bin
It wouldn't hurt to add another line like:
JAVA_HOME=/home/java
You should also have a line below like:
export PATH JAVA_HOME
note that there is a space between PATH and JAVA_HOME
save your ~/.bash_profile and create a directory bin under your home directory:
mkdir ~/bin
if it does not exist.
cd into ~/bin and create a soft link:
ln -s /home/java/bin/java java
that points to the bin/java inside your Java directory;
you may need to do:
source ~/.bash_profile
or even log out and log back in for the changes to take place. Anyhow, you should be able to do:
java -version
and see something like:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)
or something similar depending on your JDK version.
now that you have the Java executable at your reach (shell-wise that is), you can run any Java programs.
If you are using Firefox, you may as well allow Firefox to execute applets/java programs; in that case pay at trip to:
cd ~/.mozilla/plugins and do:
ln -s /home/java/jre/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
Now you should be able to install jEdit. I am gonna assume that jEdit has been installed into /home/myhome/jedit.
Now go back to your ~/bin and create a file called jedit: vi jedit
The file should contain the following 4 lines:
#!/bin/sh
# Java heap size, in megabytes
JAVA_HEAP_SIZE=32
exec "java" -mx${JAVA_HEAP_SIZE}m ${JEDIT} -jar "/home/myhome/jedit/4.2/jedit.jar" $@
or:
#!/bin/sh
# Java heap size, in megabytes
JAVA_HEAP_SIZE=32
exec "$JAVA_HOME/bin/java" -mx${JAVA_HEAP_SIZE}m ${JEDIT} -jar "/home/myhome/jedit/4.2/jedit.jar" $@
should also work. Anyhow, save the file and make sure that it is executable: chmod 755 jedit
cd back to your home directory: cd ~/ and try: jedit &
and if you have lots of RAM memory, bump up that 32 to 64, 128 or whatever.
If you have had problems in jEdit complaining about the maximum memory allocated to Java, now you'll now how and where to solve that too (I did indeed have a memory shortage problem with extremely huge files).
Now you are done. Enjoy jEdit!!!
Boot Notification (boot_notification.bsh v1.1 by Claudio Vicari)
Submitted by
cvicari on
Monday, 18 April, 2005 - 14:27
This startup script displays a small dialog for a little while, in order to notify the user that jedit has started.
I use it as a replacement for the plain splash screen, because it starts only at the very end of the startup process. Useful when you are used to start jedit in background at logon (-background -nogui options), in order to access the editor quickly later on.
Plugin central updates - 1 new, 6 updated
Submitted by
slava on
Monday, 18 April, 2005 - 22:47
A
new batch of plugins is now out, with the new JavaDebuggerPlugin, and new releases of Archive, Console, Factor, JCompiler, SideKick and SQL.
Latex parser doesn't work in release 4.3pre2
Submitted by
doublebacks on
Tuesday, 19 April, 2005 - 02:40
The Latex plugin can parse latex file structure with sidekick in release 4.2,
but it doesn't work in release 4.3pre2.
N00b question...how do i install the icons and images i downloaded form this site?
Submitted by Anonymous on Tuesday, 19 April, 2005 - 03:13
...to Jedit?
THX.
Jump! incompatible with the new Project Viewer (2.1.0.1)
Submitted by Anonymous on Tuesday, 19 April, 2005 - 15:19
The error:
java.lang.NoSuchMethodError: projectviewer.vpt.VPTFile.getCanonicalPath()Ljava/lang/String;
at ProjectBuffer.init(Unknown Source)
at ProjectBuffer.getProjectBuffer(Unknown Source)
at Jump.showProjectJump(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.invokeObjectMethod(Reflect.java:81)
at bsh.Name.invokeMethod(Name.java:856)
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.gui.InputHandler.invokeAction(InputHandler.java:195)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:297)
at org.gjt.sp.jedit.View.processKeyEvent(View.java:669)
at org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(JEditTextArea.java:4957)
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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(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)
FTP-0.7.3 connection pool problem
Submitted by Anonymous on Tuesday, 19 April, 2005 - 16:59
I've noticed strange behaviour of FTP plugin in version 0.7.3 (as opposed to 0.7.2 which works OK).
When I try to open a large ammount of files (let's say 25) at the same time, jedit opens 25 connections to ftp server (or at least tries to). As I have a connecion limit on my FTP server set to 10 (windows 2000 pro with built-in ftp service), jedit gives me a nice ftp error.
Did anybody experienced similar problems?
--
Demboos
demboos (at) wp pl
HTML / PHP multihighliter
Submitted by Anonymous on Wednesday, 20 April, 2005 - 07:32
Is there any way how to have different highliting for HTML and php when working with php in html?
Thanx