-
Notifications
You must be signed in to change notification settings - Fork 102
Java
Emacs eclim allows you to use the import capabilities from Eclipse. When you call eclim-java-import-organize
the needed imports will be added automatically. If there are multiple classes with the same name, you can choose the right one from a provided list.
With eclim you can easily choose the method you want to implement or override from a list. Just call eclim-java-implement
to get a list of available method scaffolds.
refactoring is crucial for effective Java development. Eclim however has currently only very basic refactoring support.
A key to productive java development is the ability to browse java source code effectively. Eclim provides a set of features to achieve that goal.
You can display a hierarchy tree for the current java class you are editing. This tree contains all superclasses and the implemented interfaces.
To display the hierarchy tree for the class in the current buffer run M-x eclim-java-hierarchy RET
. This function is bound to C-c C-e h
by default.
With emacs-eclim you can instantly browse any given type by it’s name. The function eclim-java-find-type
, which is bound to C-c C-e f t
by default will perform a lookup on any specified class name. By default the search pattern will contain the class name under the cursor and if there is none the currently editing class.
To display the method references in the current project, you need to move the cursor on a given method definition and call M-x eclim-java-find-references
. This will display all results in a grep like buffer. The function is bound to C-c C-e f r
by default.