JaroslavTulach commented on pull request #2948:
URL: https://github.com/apache/netbeans/pull/2948#issuecomment-840534354


   The 
[ContextAwareAction](https://bits.netbeans.org/12.3/javadoc/org-openide-util-ui/org/openide/util/ContextAwareAction.html)
 concept was only introduced to properly observe _enablement_ state of such 
actions. Without cloning the action one cannot get `addPropertyChangeListener`, 
`removePropertyChangeListener` and `isEnabled()` working properly. However 
there is no change listener in 
[ActionProvider](https://bits.netbeans.org/12.3/javadoc/org-netbeans-modules-projectapi/org/netbeans/spi/project/ActionProvider.html)
 neither there are notifications of state changes in 
[ActionProvider](https://bits.netbeans.org/12.3/javadoc/org-netbeans-modules-projectapi/org/netbeans/spi/project/ActionProvider.html).
 As far as I can tell _context awareness_ is unnecessary.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to