Use outline view

Outline view

The outline view displays an outline of a structured file that is currently open in the editor area, and lists structural elements. The contents of the outline view are editor-specific. In the example below, which is for a Java source file, the structural elements are classes, fields, and methods. The contents of the toolbar are also editor-specific:

The Outline View

Using the Outline View

  1. To open a Java file in the Java editor, double click on the file in the Package Explorer view.

  2. Notice the syntax highlighting. Examples of parts of java source which are rendered differently are: Regular comments, Javadoc comments, Keywords, Strings:

    Java Source

  3. Look at the Outline view. It displays an outline of the Java file including the package declaration, import declarations, fields, types and methods. The Outline view also indicates whether a Java element is static, abstract, final, etc. The outline view also shows you whether a method is overridden from a base class or when it implements a method from an interface.


  4. Toggle the Hide Fields, Hide Static Members, and Hide Non-Public Members buttons in the Outline view toolbar to filter the view's display.


  5. Toggle the Sort button in the Outline view to sort the Java elements in alphabetical order rather than in the order they appear in the Java file.


  6. You can edit source code by viewing the whole Java file, or you can narrow the view to a single Java element. Click the Show Source of Selected Element Only button in the toolbar. Next, in the Outline view, select any element and note that only the selected element is displayed in the Java editor.

    Show Source of Selected Element Only

  7. Press the Show Source of Selected Element Only button again to see the whole Java file again. In the Outline view, select different elements and note that they are once again displayed in a whole file view in the editor. The Outline view selection is now indicated with a range indicator on the vertical ruler on the left border of the Java editor.

    Vertical Ruler

Professional hosting     Belorussian informational portal         Free SCWCD 1.4 Study Guide     Free SCBCD 1.3 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide     Free Mock Exam Engine