# Showing single elements or whole Java files

- To display the selected Java file in a single element view, click the Show Source of Selected Element Only button in the workbench toolbar, so that it is pressed.
- To display the selected Java file in a whole (non-segmented) view, click the Show Source of Selected Element Only button in the workbench toolbar, so that it is not pressed.

Note: this toolbar button is enabled only when a Java editor is open.

Java editor

Using the Java editor

Java editor