# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/ondra/storage/netbeans/core-main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: openide.nodes/src/org/openide/util/actions/NodeAction.java --- openide.nodes/src/org/openide/util/actions/NodeAction.java +++ openide.nodes/src/org/openide/util/actions/NodeAction.java @@ -611,9 +611,15 @@ } public void resultChanged(LookupEvent ev) { - boolean old = enabled; + final boolean old = enabled; enabled = delegate.enable(nodes()); - support.firePropertyChange(PROP_ENABLED, old, enabled); + Mutex.EVENT.readAccess(new Runnable() { + + @Override + public void run () { + support.firePropertyChange(PROP_ENABLED, old, enabled); + } + }); } public JMenuItem getMenuPresenter() {