Bug 153406 - [misc] Filtering by "Visible Java Categories" in Outline should only filter on same sibling level
Summary: [misc] Filtering by "Visible Java Categories" in Outline should only filter o...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 04:51 EDT by Michael Schliephake CLA
Modified: 2020-01-13 14:51 EST (History)
4 users (show)

See Also:


Attachments
Illustration of the situation. (7.86 KB, image/png)
2006-08-10 05:01 EDT, Michael Schliephake CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schliephake CLA 2006-08-10 04:51:18 EDT
If member function but not the class itself are categorized then hiding "Uncategorized Elements" does not show any elements.

Proposed solution: The categorie entries shuld be made the root elements or all parent nodes of catgeorized nodes should be shown even if they are not categorized.
Comment 1 Michael Schliephake CLA 2006-08-10 05:00:23 EDT
The following source produces outline views as shown in the attachment.

public class A {

    /** @category One */
    public void methodOne() {}
}

One can see that a category for the class would be necessary to enable hiding of the uncategorized members.
Comment 2 Michael Schliephake CLA 2006-08-10 05:01:12 EDT
Created attachment 47681 [details]
Illustration of the situation.
Comment 3 Benno Baumgartner CLA 2007-05-10 12:48:03 EDT
Same problem when you have:

/** @category Two */
public class A {

    /** @category One */
    public void methodOne() {}
}

and hide 'Two'. This works properly: The member A his hidden (and therefore all its children of course). Not hiding it would be a bug, unless we say, that an element implicitly inherits all categories from its children, but I don't think this is the semantic chosen for categories. 

Closing as wont fix, Dani, reopen if you don't agree.
Comment 4 Markus Keller CLA 2008-01-25 10:04:54 EST
Categories are normally used to split members of a type into several groups. It rarely makes sense to make the declaring type a member of all categories. See e.g. IJavaSearchConstants.

It's also hard to explain why categorized members are shown only when "Go Into Top Level Type" is checked.
Comment 5 Maxime Daniel CLA 2008-01-28 03:09:35 EST
(In reply to comment #4)
> Categories are normally used to split members of a type into several groups. It
> rarely makes sense to make the declaring type a member of all categories. See
> e.g. IJavaSearchConstants.
+1
Thinking more about it in the context of bug 202490, I was about to request a reopen myself, but Markus was faster than I ;-)

Comment 6 Dani Megert CLA 2008-01-28 04:26:30 EST
>Proposed solution: The categorie entries shuld be made the root elements
See bug 132326.
Comment 7 Benno Baumgartner CLA 2008-07-16 06:55:42 EDT
With colored labels we can now use i.e. gray for elements which do not belong to a selected category but contain children which belong to one of the selected categories.
Comment 8 Eclipse Genie CLA 2020-01-13 14:51:36 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.