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: | Icon not refreshed after changing exported/private packages in a Maven project | ||
---|---|---|---|
Product: | projects | Reporter: | David Simonek <dsimonek> |
Component: | Maven OSGi bundles | Assignee: | Tomas Stupka <tstupka> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | javydreamercsw, tzezula, vkraemer |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 200833 | ||
Bug Blocks: | |||
Attachments: | partially working patch |
Description
David Simonek
2010-05-11 12:21:04 UTC
with a recent pull... this behavior has changed. The tooltip is correct. The icon is incorrect. *** Bug 218640 has been marked as a duplicate of this bug. *** Implementation-wise my first guess was that we need the AccessibilityQuery to fire a Change event, extend AccessibilityQueryImplementation with a sub-interface to do the same. The problem arises with ProjectAccessibilityQueryImpl which is a FileOwnerQuery based dispatcher to project lookup. This beast would have to listen to all projects ever touched (or at least those that ever returned non-null Boolean value for a FileObject belonging to them). But would have to listen on all project's lookup just in case the AQI2 might show up in the lookup. Then on client side a plain ChangeEvent fired would result in all listeners having to check again for the current value. A slightly hacky optimization would be to pass a Project as part of the ChangeEvent subclass in some cases, with the client knowing the implementation detail of ProjectAQI and comparing it's own FileOwner Query result against the project being fired. If we could assume that changes are not really fired often and we accept the performance penalty of recalculating everything, then this could work. Not sure though if it makes a good API though. Created attachment 127381 [details]
partially working patch
the partially working patch attached to the issue is an attempt to brute force my way through and find the relevant nodes in project view and fire icon change events on them.. does not entirely work, initially it appears to work but later deteriorates, most likely some other node events are coming in in the beginning This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |