Plugins

I am currently developing some plugins, which make the programming in Eclipse even more easier. I hope you may find them useful too ;-) All plugins are compiled for Eclipse 3.2.
Info: Eclipse caches the plugin.xml files - therefore it may be necessary to start Eclipse with -clean to reread the configuration if a plugin has been overwritten. Otherwise the new plugin.xml may be ignored.

Plugin at.zugal.jdt

Download: at.zugal.jdt_1.0.0.jar

The Java Development Toolkit (JDT) of Eclipse is already quite powerful - still there are some features I was looking for. At the moment this plugin contains following functionality:
/blink
sarmale
trabant

peste obez
mirel
titibarbosu
bepp

remedii

  • Jump To Method allows to jump to an arbitrary field within the current Java editor. This is quite useful, because it avoids the switching between keyboard and mouse to get to another method quickly.
  • Jump To Field works similar like Jump To Method - it jumps to a field instead.
  • Run shows the last launched launch configurations.
  • Debug shows the last debugged launch configurations.
  • Junit assert method code-completes the static assert* methods from the class org.junit.Assert (see Junit).

Jump To Method

This piece of functionality is implemented as editor action - i.e. it is only available when there is a Java editor currently opened. Initially it is assigned to the shortcut "Ctrl + Alt + J" - it will open the following dialog:

jumpToMethod.jpg

As depicted on the dialog, it is possible to use regular expressions (although very restricted ones - only .* is allowed) to quickly find a method. Hitting the enter key respectively clicking on the OK button will make the currently active editor to focus on the selected method.

Jump To Field

Similar to Jump To Method this action enables the user to jump to a field - in this case by using the shortcut "Ctrl + Alt + F". Also the shown dialog looks similar and provides identical search capabilites (limited regex).

jumpToField.jpg

Run

Nothing special, just a shortcut for launching previous run configurations. Just hit "Ctrl + Alt + R", then the following, well known menu will show up:

run.JPG

Debug

Similar to the Run action, it shows the last debugged applications. The keystroke for this action is "Ctrl + Alt + D".

JUnit Assert Method

Since JUnit 4 the test classes not necessarily need to inherit from the class junit.framework.TestCase. Therefore all the static assert* methods are not available by default. Java 5 allows to import static methods, therefore it is possible to import all the needed methods into the test class. Although this works, I consider it quite annoying typing all the time the same stuff for each test class.
This action relieves the programmer from this task: it code-completes the assert* (also the fail) methods and automatically imports the static method.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.