if (nodes.length == 1 && nodes[0] == pclistener.getNode()) { if (loggable) { PropUtils.log (PropertySheet.class, " Same node selected as before; no redisplay needed"); } else if (pclistener.getNode() instanceof ProxyNode) { if (loggable) { PropUtils.log (PropertySheet.class, " Selected node is a proxy node - comparing contents."); Node[] currNodes = ((ProxyNode) pclistener.getNode()).getOriginalNodes(); if (Arrays.asList(nodes).equals(Arrays.asList(currNodes))) { if (loggable) { pclistener.detach();
if ((nodes.length == 1) && (nodes[0] == pclistener.getNode())) { if (loggable) { PropUtils.log(PropertySheet.class, " Same node selected as before; no redisplay needed"); } else if (pclistener.getNode() instanceof ProxyNode) { if (loggable) { PropUtils.log(PropertySheet.class, " Selected node is a proxy node - comparing contents."); Node[] currNodes = ((ProxyNode) pclistener.getNode()).getOriginalNodes(); pclistener.detach();
if (nodes.length == 1 && nodes[0] == pclistener.getNode()) { if (loggable) { PropUtils.log (PropertySheet.class, " Same node selected as before; no redisplay needed"); } else if (pclistener.getNode() instanceof ProxyNode) { if (loggable) { PropUtils.log (PropertySheet.class, " Selected node is a proxy node - comparing contents."); Node[] currNodes = ((ProxyNode) pclistener.getNode()).getOriginalNodes(); if (Arrays.asList(nodes).equals(Arrays.asList(currNodes))) { if (loggable) { pclistener.detach();
Node n = pclistener.getNode();
Node n = pclistener.getNode(); if (n == null) { return null;
Node n = pclistener.getNode(); if (n == null) { return null;
psheet.setDescription(ttl, desc); } else { Node n = pclistener.getNode(); if (n != null) { String ttl = n.getDisplayName();
psheet.setDescription(ttl, desc); } else { Node n = pclistener.getNode();
psheet.setDescription(ttl, desc); } else { Node n = pclistener.getNode(); if (n != null) { String ttl = n.getDisplayName();
public void removeNotify() { Node lastSel = null; if (pclistener != null) { //Save the last selection - if we're being transiently removed, //i.e. because of drag and drop, we'll want to reset it on the //next addNotify if it hasn't disappeared lastSel = pclistener.detach(); } doSetNodes(null); if (lastSel != null) { //Save the selected node in case we're re-added to a container storedNode = new WeakReference(lastSel); } super.removeNotify(); table.getReusablePropertyEnv().setBeans(null); table.getReusablePropertyEnv().setNode(null); table.getReusablePropertyModel().setProperty(null); }
@Override public void removeNotify() { Node lastSel = null; if (pclistener != null) { //Save the last selection - if we're being transiently removed, //i.e. because of drag and drop, we'll want to reset it on the //next addNotify if it hasn't disappeared lastSel = pclistener.detach(); } doSetNodes(null); if (lastSel != null) { //Save the selected node in case we're re-added to a container storedNode = new WeakReference<Node>(lastSel); } super.removeNotify(); table.getReusablePropertyEnv().setBeans(null); table.getReusablePropertyEnv().setNode(null); table.getReusablePropertyModel().setProperty(null); }
/** Attach to a node, detaching from the last one if non-null. */ public void attach(Node n) { if (currNode != n) { if (currNode != null) { detach(); } if (n != null) { n.addPropertyChangeListener(inner); n.addNodeListener(this); if (PropUtils.isLoggable(PropertySheet.class)) { PropUtils.log (PropertySheet.class, "Now listening for changes on " + n); } } currNode = n; } }
/** Attach to a node, detaching from the last one if non-null. */ public void attach(Node n) { if (currNode != n) { if (currNode != null) { detach(); } if (n != null) { n.addPropertyChangeListener(inner); n.addNodeListener(this); if (PropUtils.isLoggable(PropertySheet.class)) { PropUtils.log (PropertySheet.class, "Now listening for changes on " + n); } } currNode = n; } }
/** Attach to a node, detaching from the last one if non-null. */ public void attach(Node n) { if (currNode != n) { if (currNode != null) { detach(); } if (n != null) { n.addPropertyChangeListener(inner); n.addNodeListener(this); if (PropUtils.isLoggable(PropertySheet.class)) { PropUtils.log(PropertySheet.class, "Now listening for changes on " + n); } } currNode = n; } }
public void removeNotify() { Node lastSel = null; if (pclistener != null) { //Save the last selection - if we're being transiently removed, //i.e. because of drag and drop, we'll want to reset it on the //next addNotify if it hasn't disappeared lastSel = pclistener.detach(); } doSetNodes(null); if (lastSel != null) { //Save the selected node in case we're re-added to a container storedNode = new WeakReference(lastSel); } super.removeNotify(); table.getReusablePropertyEnv().setBeans(null); table.getReusablePropertyEnv().setNode(null); table.getReusablePropertyModel().setProperty(null); }
public void nodeDestroyed(org.openide.nodes.NodeEvent ev) { detach(); Mutex.EVENT.readAccess(new Runnable() { public void run() { doSetNodes(null); } }); }
@Override public void nodeDestroyed(final org.openide.nodes.NodeEvent ev) { if (ev.getNode() == currNode) { detach(); Mutex.EVENT.readAccess( new Runnable() { public void run() { if (currNode == null) { doSetNodes(null); } } }); } }