/** Attach itself as a listener own nodes */ private void setNodes (org.openide.nodes.Node[] newNodes) { // detach listeners from old nodes detachListeners(nodes); // attach to new nodes if (newNodes != null) { nodes = new ArrayList (newNodes.length); for (int i = 0; i < newNodes.length; i++) nodes.add(new WeakReference (newNodes[i])); } // attach listeners to new nodes attachListeners(nodes); }
public void run () { superResultChanged (null); }
public void resultChanged(org.openide.util.LookupEvent ev) { setNodes(nodes()); superResultChanged (ev); }
public void run () { superResultChanged (null); }
/** Implements <code>ContextAwareAction</code> interface method. */ public javax.swing.Action createContextAwareInstance(Lookup actionContext) { return new CookieDelegateAction(this, actionContext); }
/** Implements <code>ContextAwareAction</code> interface method. */ public javax.swing.Action createContextAwareInstance(Lookup actionContext) { return new CookieDelegateAction(this, actionContext); }
/** Attach itself as a listener own nodes */ private void setNodes (org.openide.nodes.Node[] newNodes) { // detach listeners from old nodes detachListeners(nodes); // attach to new nodes if (newNodes != null) { nodes = new ArrayList (newNodes.length); for (int i = 0; i < newNodes.length; i++) nodes.add(new WeakReference (newNodes[i])); } // attach listeners to new nodes attachListeners(nodes); }
public void resultChanged(org.openide.util.LookupEvent ev) { setNodes(nodes()); superResultChanged (ev); }
public void run() { superResultChanged(null); }
/** Implements <code>ContextAwareAction</code> interface method. */ public javax.swing.Action createContextAwareInstance(Lookup actionContext) { return new CookieDelegateAction(this, actionContext); }
public void resultChanged(org.openide.util.LookupEvent ev) { setNodes(nodes()); superResultChanged(ev); }
protected void finalize() { detachListeners(nodes); } }
/** Attach itself as a listener own nodes */ private void setNodes(org.openide.nodes.Node[] newNodes) { // detach listeners from old nodes detachListeners(nodes); // attach to new nodes if (newNodes != null) { nodes = new ArrayList<Reference<Node>>(newNodes.length); for (int i = 0; i < newNodes.length; i++) nodes.add(new WeakReference<Node>(newNodes[i])); } // attach listeners to new nodes attachListeners(nodes); }