Skip to content
Xiao Hanyu edited this page Jun 19, 2013 · 9 revisions

Source Code

Imports

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.

Implement and override Methods

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

refactoring is crucial for effective Java development. Eclim however has currently only very basic refactoring support.

Rename

Browsing

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.

Class hierarchy

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.

Types

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.

References

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.

Clone this wiki locally