/** To allow inner classes to access the super.setName method. */ void setNameSilently(String name) { super.setName(name); }
/** Set the node name. * Also may attempt to change the name of the bean, * according to {@link #setSynchronizeName}. * @param s the new name */ @Override public void setName(String s) { if (synchronizeName) { Method m = nameSetter; if (m != null) { try { m.invoke(bean, new Object[] { s }); } catch (Exception e) { NodeOp.exception(e); } } } super.setName(s); }
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); } }
/** To allow innerclasses to access the super.setName method. */ void setNameSilently (String name) { super.setName (name); }
/** To allow innerclasses to access the super.setName method. */ void setNameSilently (String name) { super.setName (name); }
public NonDataNode( String pageName) { super(Children.LEAF); super.setName(pageName); }
public static Node createLoadingNode() { AbstractNode nd = new AbstractNode(Children.LEAF){ @Override public Image getIcon(int arg0) { return Utilities.loadImage("org/codehaus/mevenide/repository/wait.gif"); } }; nd.setName("Loading"); //NOI18N nd.setDisplayName(NbBundle.getMessage(GroupListChildren.class, "Node_Loading")); return nd; } private List keys;
@Override public void setName(String s) { super.setName(s); getInstance().setName(s); } }
@Override public void setName(String s) { super.setName(s); edge.setName(s); }
public static Node createLoadingNode() { AbstractNode nd = new AbstractNode(Children.LEAF) { @Override public Image getIcon(int arg0) { return Utilities.loadImage("org/codehaus/mevenide/buildplan/nodes/wait.gif"); } }; nd.setName("Loading"); //NOI18N nd.setDisplayName(NbBundle.getMessage(NodeUtils.class, "Node_Loading")); return nd; }
public static Node createWaitNode() { AbstractNode n = new AbstractNode(Children.LEAF); n.setName(NbBundle.getMessage(JBItemNode.class, "LBL_WaitNode_DisplayName")); //NOI18N n.setIconBaseWithExtension("org/netbeans/modules/j2ee/jboss4/resources/wait.gif"); // NOI18N return n; }
private Node createWaitNode() { AbstractNode n = new AbstractNode(Children.LEAF); n.setName(NbBundle.getMessage(JBApplicationsChildren.class, "LBL_WaitNode_DisplayName")); //NOI18N n.setIconBaseWithExtension("org/netbeans/modules/j2ee/jboss4/resources/wait.gif"); // NOI18N return n; } }
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; }
private Node createWaitNode() { AbstractNode node = new AbstractNode(Children.LEAF); node.setName(NbBundle.getMessage(InstanceTargetXNode.class, "LBL_WaitNode_DisplayName")); node.setIconBaseWithExtension("org/netbeans/modules/j2ee/deployment/impl/ui/resources/wait.gif"); // NOI18N Children.Array children = new Children.Array(); children.add(new Node[]{node}); return new AbstractNode(children); } }
public static Node[] createNodes(Archetype arch, Children childs) { if (arch == LOADING_ARCHETYPE) { AbstractNode loading = new AbstractNode(Children.LEAF); loading.setName("loading"); //NOI18N loading.setDisplayName(NbBundle.getMessage(ChooseArchetypePanel.class, "LBL_Loading")); return new Node[] {loading}; } AbstractNode nd = new AbstractNode(childs); String dn = arch.getName() == null ? arch.getArtifactId() : arch.getName(); nd.setName(dn); nd.setDisplayName(dn); nd.setIconBaseWithExtension("org/codehaus/mevenide/netbeans/Maven2Icon.gif"); //NOI18N nd.setValue(PROP_ARCHETYPE, arch); return new Node[] { nd }; }
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}; }
public ResourceBundleBrandingPanel(BrandingModel model) { super(getMessage("LBL_ResourceBundleTab"), model); //NOI18N initComponents(); searchField.getDocument().addDocumentListener(searchListener); searchField.addFocusListener(searchListener); manager = new ExplorerManager(); rootNode = null; waitRoot = getWaitRoot(); waitRoot.setName(getMessage("LBL_ResourceBundlesList")); // NOI18N waitRoot.setDisplayName(getMessage("LBL_ResourceBundlesList")); // NOI18N manager.setRootContext(waitRoot); branding = getBranding(); prj = branding.getProject(); }
public J2SELogicalViewRootNode() { super(NodeFactorySupport.createCompositeChildren(project, "Projects/org-netbeans-modules-scala-project/Nodes"), Lookups.singleton(project)); setIconBaseWithExtension("org/netbeans/modules/scala/project/ui/resources/scalaProject.png"); super.setName( ProjectUtils.getInformation( project ).getDisplayName() ); if (hasBrokenLinks()) { broken = true; } else if (hasInvalidJdkVersion ()) { illegalState = true; } compileOnSaveDisabled = isCompileOnSaveDisabled(); brokenLinksAction = new BrokenLinksAction(); }
@SuppressWarnings("LeakingThisInConstructor") public LogicalViewRootNode(String childrenFolderLayer, String actionsFolderLayer, String iconBase, String shortDesc, Class helpContext) { super(NodeFactorySupport.createCompositeChildren(project, childrenFolderLayer), Lookups.fixed(project, project.getProjectDirectory())); this.shortDesc = shortDesc; this.actionsFolderLayer = actionsFolderLayer; this.helpContext = helpContext; setIconBaseWithExtension(iconBase); //NOI18N super.setName( ProjectUtils.getInformation( project ).getDisplayName() ); addChangeListener(WeakListeners.change(this, AbstractLogicalViewProvider.this)); testBroken(); }
public RubyLogicalViewRootNode() { super(NodeFactorySupport.createCompositeChildren(getProject(), "Projects/org-netbeans-modules-ruby-rubyproject/Nodes"), Lookups.singleton(getProject())); setIconBaseWithExtension("org/netbeans/modules/ruby/rubyproject/ui/resources/jruby.png"); super.setName(ProjectUtils.getInformation(getProject()).getDisplayName()); this.rspecSupport = new RSpecSupport(getProject()); }