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

Summary: Improve TreeModelListener support
Product: debugger Reporter: Jan Jancura <jjancura>
Component: CodeAssignee: issues@debugger <issues>
Status: CLOSED FIXED    
Severity: blocker Keywords: API
Priority: P1    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.