private LazyNode(AbstractNode an, Map<String,?> map) { super(an, new SwitchChildren(an)); ((SwitchChildren)getChildren()).node = this; this.map = map; an.setName((String) map.get("name")); // NOI18N an.setDisplayName((String) map.get("displayName")); // NOI18N an.setShortDescription((String) map.get("shortDescription")); // NOI18N String iconBase = (String) map.get("iconResource"); // NOI18N if (iconBase != null) { an.setIconBaseWithExtension(iconBase); } }
public static Node createInfoNode() { AbstractNode n = new AbstractNode(Children.LEAF); n.setName(NbBundle.getMessage(JBItemNode.class, "LBL_InfoNode_DisplayName")); //NOI18N n.setShortDescription(NbBundle.getMessage(JBItemNode.class, "LBL_InfoNode_ToolTip")); //NOI18N n.setIconBaseWithExtension("org/netbeans/core/resources/exception.gif"); // NOI18N return n; }
protected Node[] createNodes(Variable var) { Children ch = Children.LEAF; AbstractNode n = new AbstractNode(ch, Lookups.singleton(var)) { @Override public Image getIcon(int type) { return iconDelegate.getIcon(type); } }; n.setName(var.getName()); n.setDisplayName(var.getName() + "("+var.getValue().getPath()+")"); // NOI18N n.setShortDescription(var.getName() + "("+var.getValue().getPath()+")"); // NOI18N return new Node[] {n}; }
node.setName(datasourceName); node.setDisplayName(dsName); node.setShortDescription(dsName);
empty.setName("empty"); // NOI18N empty.setDisplayName(Bundle.LBL_NoModesFound()); empty.setShortDescription(Bundle.MSG_NoModesFound()); ch.add(new Node[] { empty }); markInvalid();