jEdit Community - Resources for users of the jEdit Text Editor
Difference between CodeAid, DotComplete and SpeedJava
Submitted by Anonymous on Thursday, 29 January, 2004 - 22:57
CodeAid, DotComplete and SpeedJava all seem to be Java auto-complete plugins.

If this is true, what is the difference between them and which is the most "complete".

Thanks, Tom
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
DotComplete completes only af
by rfletch6 on Fri, 30/01/2004 - 10:58
DotComplete completes only after you type a . character. I use this and it works pretty well for me, although it would be great if it could complete in other contexts. The big advantage for me is that DotComplete can get its class/source paths from AntHelper.

CodeAid is the most complete in that it tries to complete everything. However, I've never managed to get it to work. It's certainly a plugin to watch in future, though.

SpeedJava is (I believe) no longer supported. I used to use it until DotComplete was released. I stopped because DotComplete works with AntHelper, which suits the way I work & SpeedJava used to have a couple of issues with edit bus events (dumping massive stack traces into the activity log - this may have been fixed since I stopped using it).
 
DotComplete - works a treat!
by Anonymous on Tue, 16/03/2004 - 17:50
I tried using CodeAid but couldn't get it to work reliably so gave up. I now use DotComplete and it took a bit of config but when I finally understood what was going on, found it worked well.

Incidentally, I think DotComplete requires JDK 1.4.

In response to the statement "DotComplete completes only after you type a . character.", yes it is true that this is the default behaviour, but in fact you can make it sooo much better by adding your own keyboard shortcuts.


More on that in a moment. First off though, I found getting DotComplete to work was a bit of a trial because I misconfigured the classpath, and probably other things besides. At first it wouldn't show the popup dialog so here are my notes on things to check for...

DotComplete Fails to show popup dialog
If DotComplete fails to popup members dialog, and instead complains about a parser error, the chances are something is misconfigured.

Check Plugin Manager and ensure that DotComplete is displayed, and does not have an error (i.e. it is not displayed in red).

Check if the classpath for DotComplete is incorrect. If it is set to use JCompiler's classpath, check that JCompiler compilation works.
If that's ok, set DotComplete's classpath to 'custom' and then back to JCompiler to pickup. Ensure that all necessary paths are explicitly specified in JCompiler's classpath.

Note that DotComplete and JCompiler do behave slightly differently even if using the same classpath, and it is possible for JCompiler to work even if DotComplete gets an error. It is possible that a failure in DotComplete's parsing of a member class (e.g. because the member source has been removed) can cause problems even though jcompiler will work ok, perhaps (especially if you have old out-of-date classes kicking around on your hard disk)

Also note that if you are using JCompiler's classpath, and in JCompiler you specify "Required Library Path", or make use of $basepath, I don't think these get passed to other plugins that make use of it - so you'll want to specify the classpath in JCompiler in full (I think!) i.e. unless you are only using JCompiler and nothing else depends on it, don't use $basepath and Required Lib Path.

Try viewing the Activity log (Utilities-Troubleshooting-Activity Log) and see if there are any errors being produced. Sometimes noclassdeffound exception appears to cause problems.

Try File-Reload All. This has been known to clear the problem on my pc.

Try restarting JEdit.

OK now on to the bit that I was going to talk about at the start

Specify a shortcut key to display Completion Dialog

Go to following option (in v4.2pre9):
Utilities-Global Options-JEdit-Shortcuts

Select "Plugin:DotComplete" from "Edit Shortcuts" dropdown.

Click "Primary Shortcut" box next to "Complete"

In "Specify Shortcut" dialog, press a key combination of your choice. I set it to Ctrl+Space because that is what I used in a different environment. Unfortunately this is already taken by "repeat last editor action" (which I don't use) so you may wish to choose a different combination.

Click Apply
Click OK

Now whenever you are typing a method or the caret is within a piece of text, press your key combo (e.g. Ctrl+Space, in my case) and DotComplete will popup to help you on your way.

Shame it doesn't seem to work for Import statements, but that's what LazyImporter, JImporter and JTools are for, I guess...

hth
Eye-wink
User login
Browse archives
« November 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   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300