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.
return false;
}
/** Checks whether given Node is a subnode of exploredContext.
* @return true if specified Node is under current exploredContext
*/
private boolean isUnderExplored (Node node) {
Node explored = exploredContext;
if (explored != null) {
while (node != null) {
if (node.equals(explored)) {
return true;
node = node.getParentNode();
/** Checks whether given Node is a subnode of rootContext.
* and throws IllegalArgumentException if not.
updateSelection(newSel, remove);
newSel.removeAll(remove);
for( Iterator<Node> i=newSel.iterator(); i.hasNext(); ) {
Node n = i.next();
if( !isUnderRoot( n ) )
private void updateSelection (List<Node> newSel, Collection<Node> remove) {
boolean removed = newSel.removeAll(remove);
if (removed && newSel.isEmpty()) {
Node parentSelection = null;
for (Node n : remove) {
Node p = n.getParentNode();
if (p != null && !remove.contains(p) && isUnderRoot(p) && isUnderExplored(p)) {
parentSelection = p;
break;
if (parentSelection != null) {
newSel.add(parentSelection);
static final class Destroyed extends VisualizerEvent implements Runnable {
private final VisualizerNode toNull;
public Destroyed(VisualizerChildren ch, NodeEvent ev) {
public Destroyed(VisualizerChildren ch, NodeEvent ev, VisualizerNode toNull) {
super(ch, null, ev, null);
this.toNull = toNull;
@Override
v.nodeDestroyed(originalEvent);
toNull.parent = null;
public void nodeDestroyed(NodeEvent ev) {
node = Node.EMPTY;
QUEUE.runSafe(new VisualizerEvent.Destroyed(getChildren(false), ev, this));
QUEUE.runSafe(new VisualizerEvent.Destroyed(getChildren(false), ev));
/** Change in the node properties (icon, etc.)