Home

 

Appearance of Java elements

The appearance and the settings of associated Java elements in views, such as methods, members, and their access types, can be configured:

Select Window Æ Preferences Æ Java Æ Appearance.

The Appearance preferences page is displayed with appearance check boxes as described in Table | -4.



Figure 3-21 Java appearance settings

Table 3-4

Appearance setting Description

Show method return types

If selected, methods displayed in views show the return type.

Show method type parameters

If selected, methods displayed in views show their type parameters.

Show categories

If selected, method, field, and type labels contain the categories specified in their Javadoc™ comment.

Show members in Package Explorer

If selected, displays the members of the class and their scope such as private, private or protected, including others.

Fold empty packages in hierarchical layout

If selected, folds the empty packages that do not contain resources or other child elements.

Compress package name segments

If selected, compresses the name of the package based on a pattern supplied in the dialog below the check box.

Stack views vertically in the Java Browsing perspective

If selected, displays the views in the Java Browsing perspective vertically rather than horizontally.

Description of appearance settings for Java views

To change the appearance of the order of the members to be displayed in the Java viewers, do these steps:

In the Preferences dialog, select Java Æ Appearance Æ Members Sort Order. This preference allows you to display the members in the order you prefer, as well as the order of scoping within that type of member.

Select the order in which members will be displayed using the Up and Down buttons. You can also sort in the same category by visibility.

Click Apply and then OK.

To specify types and packages to hide in the Open Type dialog and content assist or quick fix proposals, do these steps:

In the Preferences dialog, select Java Æ Appearance Æ Type Filters.

You can either create a new filter or add packages to the type filter list. The default is to hide nothing.
ibm.com/redbooks