Beispiel #1
0
 /* Creates and returns the instance of the node
  * representing the status 'INFO' of the node.
  * It is used when it spent more time to create elements hierarchy.
  * @return the wait node.
  */
 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;
 }
 @Override
 public void resultChanged(LookupEvent le) {
   Logger.getLogger(OscillogramNavigatorPanel.class.getName())
       .log(Level.INFO, manager.getRootContext().getDisplayName());
   Collection<? extends ChannelList> allInstances = this.result.allInstances();
   if (!allInstances.isEmpty()) {
     ChannelList list = allInstances.iterator().next();
     AbstractNode rn =
         new AbstractNode(Children.create(new ChannelChildFactory(list.getChannels()), false));
     rn.setName(list.getName());
     rn.setIconBaseWithExtension("tw/edu/sju/ee/eea/module/iepe/project/iepe_project.png");
     manager.setRootContext(rn);
     return;
   }
   //        manager.setRootContext(Node.EMPTY);
 }
Beispiel #3
0
 /* Creates and returns the instance of the node
  * representing the status 'WAIT' of the node.
  * It is used when it spent more time to create elements hierarchy.
  * @return the wait node.
  */
 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;
 }