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 40770 - Improve TreeModelListener support
Summary: Improve TreeModelListener support
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2004-03-04 17:33 UTC by Jan Jancura
Modified: 2010-04-29 09:16 UTC (History)
0 users

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 Jan Jancura 2004-03-04 17:33:00 UTC
There is TreeModelListener. It can get registered
with a NodeModel, TreeModel and TableModel. Is
this redundancy just for convenience? Does the
same listener get registered with all three?
Converesely if I have to call
TreeModelListener.treeNodeChanged do I have to
call it on all the listeners registered with
NodeModel, TreeModel and TableModel? I"m worried
that the redundancy will cause either too many or
too few firings.
Comment 1 Jan Jancura 2004-03-26 15:25:56 UTC
This redundancy is OK, I think.
View listens on all models it displayes.
So, be carefull. You should fire one change only once.

BTW, you can implement all models by one class. And it will be much
more clear for you in this case.
Comment 2 Quality Engineering 2010-04-29 09:16:49 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.