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 79940 - Why is there no TreeExpansionFilter?
Summary: Why is there no TreeExpansionFilter?
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2006-07-10 23:55 UTC by ivan
Modified: 2010-04-29 09:29 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 ivan 2006-07-10 23:55:29 UTC
I was getting strange Breakpoint node expansion behaviour and in
order to explore decided to interpose a TreeExpansion ... well, 
it should be Filter because breakpoints are global but there seems to be no
TreeExpansionFilter. 
Is this by design?
It seems that because the original request for this came for locals and
watches (which for the native debugger were separate from the master
set meintained by debuggercore) that need for a Filter to match the Model
was overlooked?
Comment 1 Martin Entlicher 2006-07-14 16:14:59 UTC
Well, I have no idea why there is not one. I guess it was not needed.
It's true that all the models have appropriate filters, so this one can be
added. But do you have some use-case for it? Is it necessary for some debugger
implementation?
I have no problems with adding a TreeExpansionFilter, but it's strange to add
something for which there is not any use.
Comment 2 Martin Entlicher 2006-10-13 16:48:23 UTC
Adding incomplete keyword - do you really need a TreeExpansionFilter for some
real functionality?
Comment 3 ivan 2006-10-13 19:37:17 UTC
Not at the moment.
However, I've been concentrating on breakpoints.
At some point we'll be concentrating on watches which are global
and depend on expansion much more. Then this issue
might or might not become actually relevent.

Shall we leave it as is or close and maybe reopen it?
Comment 4 Martin Entlicher 2006-10-16 09:58:06 UTC
O.K. So closing as wontfix for now, please reopen when you'll have some use-case
for this. Thanks.
Comment 5 Antonin Nebuzelsky 2006-12-01 12:50:07 UTC
Removing MARS keyword.
Comment 6 Martin Entlicher 2008-06-07 17:45:19 UTC
There was no use-case for this filter until now - in the new Debugging View.
Comment 7 Martin Entlicher 2008-06-07 17:50:07 UTC
Fixed as a part of API additions described in issue #136099.

Interface org.netbeans.spi.viewmodel.TreeExpansionModelFilter was added with methods:

boolean isExpanded (TreeExpansionModel original, Object node) throws UnknownTypeException;
void nodeExpanded (Object node);
void nodeCollapsed (Object node);
void addModelListener (ModelListener l);
void removeModelListener (ModelListener l);
Comment 8 Quality Engineering 2010-04-29 09:29:23 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.