jEdit Community - Resources for users of the jEdit Text Editor
A 'Go to definition' code browser macro. (Open_Selected_Class.bsh v1.3 by Steve Ewart)
Submitted by sewart on Wednesday, 12 May, 2004 - 20:08
Highlight a class name, run the macro and it will automatically open the source for that class. Similar to "Go to definition" in Visual Studio. Very useful when browsing source code. Could not imagine coding Java in JEdit without this. It can access many different source paths; your projects source, JDK source, etc. Just modify the 'searchPath' at the top of the macro to reflect where your JDK source code (or any source code) is located. Source code for the highlighted class will be opened if: The cursor is on a class name in any part of the file AND there is a import for the class OR there is a wildcard import containing the class OR the class is in the current package (current directory) OR the class is in the java.lang source directory (searchPath must be set) the class is in a different project than current project (searchPath must be set) The cursor is on a line with an import statement A fully qualified class is highlighted (not necessarily an import statement) Limitations: It cannot open a file if the package cannot be appended to any part of the current file's directory structure. It only works with java files, other languages are not supported. Will only find (scroll to) inner classes if it is in an import.

Updated on 02/03/2007 - 23:09
Downloads: 2830

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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293