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 118384 - Enable filtering, sorting, more collapsing in Navigator
Summary: Enable filtering, sorting, more collapsing in Navigator
Status: STARTED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker with 2 votes (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 151620 (view as bug list)
Depends on: 114037
Blocks:
  Show dependency tree
 
Reported: 2007-10-10 15:20 UTC by eskild
Modified: 2010-05-21 07:28 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eskild 2007-10-10 15:20:00 UTC
I sorely miss filtering and sorting in the C/C++ Navigator. What I'd like to see is:

Sorting
-------
These options, as a minimum:

* Don't sort
* Sort by Name (ascending/descending)
* Sort by Type (type: #define, var, func, etc.)

Re. don't sort: Sometimes it's nice that things are listed in the same order as in the source file; then my mental idea
of the file's layout matches what's presented in the GUI

Filtering
---------
Show/don't show each type (#define, var, typedef, func, etc.)

As a concrete example, I'm right now working with a C header file with a lot of structs. Each struct is of this form:

  typedef struct Foo_t_ { ... } Foo_t;

This so the programmer doesn't have to write "struct Foo_t" everywhere, but can get by with "Foo_t". In essence, the
Foo_t_ symbol is redundant, so I'd love to have it "disappear" from my Navigator.

Also, being able to specify filter regexps would be cool -- then I could say something like "don't show *_t_".

More collapsing
---------------
In the header I just mentioned, there's a lot of #define's. In the navigator, I cannot collapse them "out of the way".
Same thing for other types of elements -- again, variables, typedefs, enums, etc. An option to collapse such things out
of the way would be cool.

I guess what I'm really asking is for the Navigator to become much more selective about what it shows, and how it's
shown. In that way it's of more value to me, as I'm often interested in a specific subset of a file's elements, not the
full gazillion of elements.

The same thing, by the way, goes for the Classes view -- in short, all navigability features should become more
customizable.
Comment 1 dpirch 2008-03-08 18:15:39 UTC
I agree, especially a don't sort option would be very useful. Currently even struct members are sorted which is
confusing when writing initializer lists.
Comment 2 Quality Engineering 2009-01-14 07:46:38 UTC
Integrated into 'main-golden', will be available in build *200901140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cb9e4b295112
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing IZ#112863:Show scope for class function/variables definitions in navigator
fixing IZ#114037:Navigator and filter buttons
fixing IZ#118384:Enable filtering, sorting, more collapsing in Navigator
fixing IZ#139264:Navigator node collapsing
Comment 3 Alexander Simon 2009-01-14 08:28:53 UTC
partly fixes.
See IZ#114037
Comment 4 Alexey Vladykin 2010-05-21 07:28:16 UTC
*** Bug 151620 has been marked as a duplicate of this bug. ***