/** * Refresh the node. * @param recurse Recursively refresh subnodes, if true. */ public void refresh(boolean recurse) { // cms.getComponentDescription(desc.getName()).addResultListener(new SwingDefaultResultListener() // { // public void customResultAvailable(Object result) // { // FileTreeNode.this.desc = (IComponentDescription)result; // getModel().fireNodeChanged(FileTreeNode.this); // } // public void customExceptionOccurred(Exception exception) // { // // ignore // } // }); super.refresh(recurse); }
/** * Set the children. */ protected void setChildren(List<? extends ITreeNode> children) { super.setChildren(children); }
/** * Test if two nodes are equal. */ @Override public boolean equals(Object obj) { return obj instanceof ISwingTreeNode && SUtil.equals(getId(), ((ISwingTreeNode)obj).getId()); }
/** * Set the children. */ // Made public to support external refresh in deployer. public void setChildren(List newchildren) { this.children = newchildren; super.setChildren(newchildren); }
/** * Refresh the node. * @param recurse Recursively refresh subnodes, if true. */ public void refresh(boolean recurse) { // cms.getComponentDescription(desc.getName()).addResultListener(new SwingDefaultResultListener() // { // public void customResultAvailable(Object result) // { // FileTreeNode.this.desc = (IComponentDescription)result; // getModel().fireNodeChanged(FileTreeNode.this); // } // public void customExceptionOccurred(Exception exception) // { // // ignore // } // }); super.refresh(recurse); }
/** * Set the children. */ protected void setChildren(List children) { this.broken = false; super.setChildren(children); }
/** * Refresh the node. * @param recurse Recursively refresh subnodes, if true. */ public void refresh(boolean recurse) { assert SwingUtilities.isEventDispatchThread(); // cms.getComponentDescription(desc.getName()).addResultListener(new SwingDefaultResultListener() // { // public void customResultAvailable(Object result) // { // FileTreeNode.this.desc = (IComponentDescription)result; // getModel().fireNodeChanged(FileTreeNode.this); // } // public void customExceptionOccurred(Exception exception) // { // // ignore // } // }); super.refresh(recurse); }