Go to Class plugin v0.3 (supports wildcard's in search)
This action plugin is used to go to classes like IDEA's default go to class action. Except this action
can use wildcards in the search for classes.
Searching for all your bean classes is easy as just to type *bean in the input field.
You can use more wildcards in the search so a *plugin*action will find all classes that has
plugin and action in it's name. And s*action will find all classes that starts with s and has action in it's name.
Usage
The action is installed in the go to menu. And can be invoked with ALT + N.
Regular expression
The action uses the regular expression from JDK1.4. It replaces all * in the input field with .* and adds .* to the end of the string. And it ignores the case.
Installation
Copy the gotoclass-plugin.jar file into plugins dir of idea installation.
Changelog
v0.3 - Red text in inputfield when no matching classes. Pressing Enter when there is only one class in list will go to it. Cycling to top of classlist if pressing arraw down at the end of list. Movement with arrow up/down keys between input field and classlist possible.
v0.2 - Debug info for performance. Scrollbar works in classlist. Interface icon in list. Packagename is displayed like in IDEA's go to class dialog. Debug's initialization time if it took more than 1 sec.
v0.11 - Fixed bug if ToStringPlugin was installed also. (conflict in plugin.xml)
v0.1 - Initial alpha version.
Todo
Still some work to be done.
Better GUI. Anyone a Swing expert who wanna help???
Act more like IDEA's go to class dialog.
Peformance improvents. This action gathers all the class information each time it's invoked. Maybe somekind of caching and hook to some of IDEA's listeners to be notified with filechanges and editor changes to mark a flag for reload.
Uses hardcoded colors as the default IDEA theme. Should use the same color constant's as IDEA does. Anyone know where to get these informations?
Investigate PsiShortNameCache that JetBrains suggested. ( still no propper way to use their API yet, since the methods need a search input. )
Performance
I tried to invoke the dialog when I had all the source files for JBoss v3.04 in my sourcepath. After 29sec. the dialog was shown (NT4, P3-1.8Ghz,512mb). Calling the action again took 1/10 sec., since the sourcefiles was cached in IDEA.
Disclaimer
This plugin uses functions outside the openAPI (PSI, Internal IDEA dialogs), so it might not work in the future if IDEA changes these core API's.
-- DavsClaus - 02 Dec 2002
|
|