Class / Interface Hierarchy

When viewing a java class or interface you can view the type hierarchy by issuing the command :JavaHierarchy. This will open a temporary buffer with an inversed tree view of the type hierarchy with the current class / interface at the root.

public class XmlCodeCompleteCommand
  public class WstCodeCompleteCommand
    public class AbstractCodeCompleteCommand
      public class AbstractCommand
        public interface Command

Inner classes / interfaces are also supported. Just place the cursor on the inner class / interface before calling :JavaHierarchy.

While you are in the hierarchy tree buffer, you can jump to the type under the cursor using one of the following key bindings:

  • <enter> - open the type using the (default action).
  • <ctrl>e - open the type via :edit
  • <ctrl>s - open the type via :split
  • <ctrl>t - open the type via :tabnew

Configuration

Vim Variables

  • g:EclimJavaHierarchyDefaultAction (defaults to ‘split’) - Determines the command used to open the type when hitting <enter> on the type entry in the hierarchy buffer.