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.
Summary: | the wrapping model for JTree OptionsFilter$FilteringTreeModel doesn't delegate addition/removal of listeners to the underlying model | ||
---|---|---|---|
Product: | editor | Reporter: | ilia |
Component: | Options | Assignee: | Milutin Kristofic <mkristofic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | issues, jlahoda, sdedic |
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 258503, 267267 | ||
Attachments: |
patch
Suggestion for |
Description
ilia
2016-03-24 10:29:26 UTC
Created attachment 158990 [details]
patch
Can you review and apply the fix, please? Thank you ilia for patch and patience. I am sorry for waiting. Here is pushed into repository. http://hg.netbeans.org/jet-main/rev/7820b6906e42 Thanks, Milutin! The change causes issue #267267; since the event comes to filtered model client from the original unfiltered source, integer indices are broken - from the filered point of view. Created attachment 161452 [details]
Suggestion for
Hi Ilia,
this change is causing problem with filtering tree, since it triggers tree changes in Handler. I have not find solution with leaving delegate listeners as are in your patch.
Maybe we can do something like I am suggesting in patch. What do you think?
Hi Milutin, Fix looks safe. I believe spec. version in module's properties should be incremented too because this is an API change. Great,thank you. I push patch to repository. http://hg.netbeans.org/jet-main/rev/64fa8c731fa9 After discussion with Svata, I changed implementation to overload. Best, Milutin Integrated into 'main-silver', will be available in build *201608270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/64fa8c731fa9 User: Milutin Kristofic <mkristofic@netbeans.org> Log: #258518 - the wrapping model for JTree OptionsFilter$FilteringTreeModel doesn't delegate addition/removal of listeners to the underlying model |