# Java Views

The Java development tools contribute the following views to the workbench:

## Java

- ### Package Explorer View

  The Package Explorer view shows a Java-specific view of resources inside Java projects in your workbench. The Java element hierarchy is defined by the project's build class paths and consists of elements like

  - source folders and libraries
  - packages
  - source and class files
  - types, methods, fields and initializers

- ### Type Hierarchy View

  The Type Hierarchy view allows you to look at the complete hierarchy for a type, only its subtypes, or only its supertypes. You can also open the hierarchy on a project, source folder or package.

- ### Call Hierarchy View

  The Call Hierarchy view allows you to look at the callers and callees for a selected Java member.

- ### Java Outline View

  The Java outline view displays an outline of the structure of the currently-active Java file in the editor area.

- ### JUnit View

  The JUnit view shows you the JUnit test run progress and status, and allows you to rerun tests.

- ### Javadoc View

  The Javadoc view shows the Javadoc of the element selected in the Java editor or in a Java view.

- ### Declaration View

  The Declaration view shows the source of the element selected in the Java editor or in a Java view.

## Java Browsing

- ### Projects View

  The Projects view shows Java projects, source folders, external and internal libraries.
  Note: source folders and libraries (both internal and external) presented in this view are not expandable. When they are selected, their contents are shown in the Packages view.

- ### Packages View

  The Packages view shows a list of Java packages from the currently selected Java projects, source folders or libraries. Typically, the Projects view is used to make this selection.

- ### Types View

  The Types view shows a list of Java types from the currently selected packages. Typically, the Packages view is used to make this selection.

- ### Members View

  The Members view shows the content of a type, compilation unit or CLASS file. Typically, the Types view is used to make this selection.

## Debug

- ### Debug View

  The Debug view allows you to manage the debugging or running of a program in the workbench. It displays the stack frame for the suspended threads for each target you are debugging. Each thread in your program appears as a node in the tree. It displays the process for each target you are running.

- ### Breakpoints View

  The Breakpoints view lists all the breakpoints you currently have set in your workspace. You can also enable or disable breakpoints, delete them, add new ones, group them by working set, or configure attributes of a selected breakpoint.

- ### Expressions View

  Data can be inspected in the Expressions view. You can inspect data from a scrapbook page, a stack frame of a suspended thread, and other places. The Expressions View opens automatically when an item is added to the view. Entries in the Expressions View can be selected to have more detailed information be displayed in the Detail Pane. When debugging a Java program, data that contains variables can be expanded to show the variables and the fields the variables contain.

- ### Variables View

  The Variables view displays information about the variables associated with the stack frame selected in the Debug View. When debugging a Java program, variables can be selected to have more detailed information be displayed in the Detail Pane. In addition, Java objects can be expanded to show the fields that variable contains.

- ### Console View

  The Console view displays a variety of console types depending on the type of development and the current set of user settings. The consoles that are provided by default with the Eclipse Platform are:

  - The Process Console
  - The Stacktrace Console
  - The CVS Console
  - The OSGi Console

- ### Display View

  The Display view displays the result of evaluating an expression in the context of the current stack frame. You can evaluate and display a selection either from the editor or directly from the Display View.

# View Customization

Both the appearance and behavior of the Java views can be customized.

- Filtering
- Sorting
- Java element decorations
- Presentation options

Java perspectives

Changing the appearance of the Console view

Views and editors