This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 140891

Summary: Navigator Filter Option Enhancement
Product: java Reporter: earamsey <earamsey>
Component: NavigationAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: blocker CC: markiewb
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description earamsey 2008-07-19 21:56:18 UTC
Env:
Product Version: NetBeans IDE Dev (Build 200807040101)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\erica\.netbeans\6.5m1

Issue:
Currently in the Project Navigator Window, the "Filter" option has only 4 options "Show Inherited Members", "Show 
Fields", "Show Static Members" and "Show Non-public Members". I would like more granularity, for instance, could you 
also add "Show Fields ..." this will bring up dialog with following options;

[Global]
[Project Tree]
  [Project-1]
      File-1.java
      File-2.java
      ...
      File-N.java
  [Project-N]
      File-1.java
      File-2.java
      ...
      File-N.java

From [Global] you can set default options. From [Project-N] you can override [Global] settings per project basis. From 
[Project-N]->[File-N] you can override per Project File basis.

I suggest the following abilities for Filter settings.
    [Show Inherited Members]
	   o All          
	   o Private
	   o Protected
	   o Public
	   ------------------------
	   o Sort by Name
	   o Sort by Source
	   ------------------------
	   [] Select ... 
    [Show Fields]
	   o All          
	   o Private
	   o Protected
	   o Public
	   ------------------------
	   o Sort by Name
	   o Sort by Source
	   ------------------------
	   [] Select ...
    [Show Static Members]
	   o All          
	   o Private
	   o Protected
	   o Public
	   ------------------------
	   o Sort by Name
	   o Sort by Source
	   ------------------------
	   [] Select ...
	[Show Non-public Members]
	   o All          
	   o Private
	   o Protected
	   o Public
	   ------------------------
	   o Sort by Name
	   o Sort by Source
	   ------------------------
	   [] Select ... 

The options 'o All', 'o Private', 'o Protected', and 'o Public' mutually exclusive. Sorting is controlled by mutually 
exclusive options 'o Sort by Name' and 'o Sort by Source'.

I call '[] Select ...' the "Sticky Member" option. It is only available for File level settings, [Project-N]->[File-N]. 
It will display a dialog that shows all Members that you can select from. The selected Members will always display at 
top of navigator regardless of to Sort setting selected. Also, would be nice if one could control the order of 'Sticky' 
members are displayed at top.

Also, when you display the members it would be nice if you could show them in
sections.
	[Fields]
	   ....
       <Show Inherited Members>
	         ....
    [Show Static Members]
	   ....
       <Show Inherited Members>
	         ....
	[Show Non-public Members]
	   ....
       <Show Inherited Members>
	         ....
<Show Inherited Members> will only be displayed if needed.

Well, I hope this is doable would be nice! I think it could be dumb :(

Thanks!