Eclipse IDE set up only methods of class be visible in package explorer

1.1k Views Asked by At

Eclipse IDE. When I click on java class file in package explorer, it opens (unfolds) inside of package explorer and I can see the list of classes, methods and variables (fields) which are in this class. My question is - can I set it up this way: to only Methods be visible (no fields in the list)?. It could really help with navigation inside big classes. I am sorry, too much trash results in google.

Image representation of what i want

3

There are 3 best solutions below

1
On BEST ANSWER

From Java Element Filters Dialog :

This dialog lets you define Java element filters for the Package Explorer view and other Java views.

There should be a "Filters..." toolbar button to open this dialog ...

0
On

Thank you! I have found it here (in Eclipse Luna 4.4.0): enter image description here

Now when "fields" are marked they are no longer visible in class list.

1
On

The Package Explorer in the Eclipse Luna 4.4.0 on Microsoft Windows XP replaced Filters... option with a Customize View.. option.

The Package Explorer Dropdown menu

Eclipse Version