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.
Steps to reproduce: - create Maven OSGi bundle, add some class in package - project properties -> Exported packages, OK all private - props again, check directory as exported result: icon changes correctly, but tool tip doesn't (still says private package)
with a recent pull... this behavior has changed. The tooltip is correct. The icon is incorrect.
See bug #200833 comment #2.
*** 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