/** * Set the component description. */ public void setDescription(IComponentDescription desc) { this.desc = desc; if(propcomp!=null) { propcomp.setDescription(desc); propcomp.repaint(); } }
/** * Dispose the panel. */ public void dispose() { comptree.dispose(); } }
/** * */ protected IComponentIdentifier getSelectedObject() { IComponentIdentifier ret = null; Object node = ((ComponentTreePanel)comptree).getTree().getLastSelectedPathComponent(); if(node instanceof IActiveComponentTreeNode) { ret = ((IActiveComponentTreeNode)node).getDescription().getName(); } return ret; }
public void nodeRemoved(ITreeNode node) { if(node instanceof IActiveComponentTreeNode) { IComponentDescription ad = ((IActiveComponentTreeNode)node).getDescription(); // System.out.println("died: "+ad.getName()); agentDied(ad); } } });
/** * Get the component icon cache shared by all tools. */ public ComponentIconCache getIconCache() { assert SwingUtilities.isEventDispatchThread();// || Starter.isShutdown(); if(iconcache==null) { iconcache = new ComponentIconCache(jccaccess); } return iconcache; }
/** * Get or create a component displaying the node properties. * Only to be called if hasProperties() is true; */ public JComponent getPropertiesComponent() { if(propcomp==null) { if(rinfo==null) { propcomp = new NFPropertyProperties(); ((NFPropertyProperties)propcomp).setProperty(propmi, ea, sid, mi); } else { propcomp = new NFRPropertyProperties(); ((NFRPropertyProperties)propcomp).setProperty(propmi, ea, mi, rinfo); } } return propcomp; }
/** * Get or create a component displaying the node properties. * Only to be called if hasProperties() is true; */ public JComponent getPropertiesComponent() { // Refresh to update cid addresses later. refresh(false); if(propcomp==null) { propcomp = new ComponentProperties(); } propcomp.setDescription(desc); return propcomp; }
/** * Get or create a component displaying the node properties. * Only to be called if hasProperties() is true; */ public JComponent getPropertiesComponent() { if(propcomp==null) { propcomp = new ProvidedServiceInfoProperties(); } propcomp.setService(service, sid, ea); return propcomp; }
/** * Get or create a component displaying the node properties. * Only to be called if hasProperties() is true; */ public JComponent getPropertiesComponent() { if(propcomp==null) { propcomp = new RequiredServiceProperties(); } propcomp.setService(info); return propcomp; }
public void resultAvailable(IComponentIdentifier result) { if(result!=null) { addCMSListener(result); } else { // state = STATE_UNCONNECTED; getModel().fireNodeChanged(ProxyComponentTreeNode.this); } }
/** * Get the cid. * @return the cid. */ public IComponentIdentifier getComponentIdentifier() { if(cid==null) getRemoteComponentIdentifier(); return cid; }
public void exceptionOccurred(Exception exception) { System.out.println("ex on: "+getId()); // exception.printStackTrace(); } });
/** * Get the id used for lookup. */ public Object getId() { // return ((ComponentTreeNode)getParent()).getDescription().getName().getName()+toString(); return getParent().getId()+NAME; }
/** * */ protected void disposeTreeView() { ((ComponentTreePanel)comptree).dispose(); }
/** * Get the component icon cache shared by all tools. */ public ComponentIconCache getIconCache() { assert SwingUtilities.isEventDispatchThread();// || Starter.isShutdown(); if(iconcache==null) { iconcache = new ComponentIconCache(jccaccess); } return iconcache; }
/** * Shutdown the plugin. */ public IFuture<Void> shutdown() { if(comptree!=null) comptree.dispose(); return IFuture.DONE; }
/** * Dispose the panel. */ public void dispose() { comptree.dispose(); } }
/** * Shutdown the plugin. */ public IFuture<Void> shutdown() { comptree.dispose(); return super.shutdown(); }