/** * Get the id used for lookup. */ public Object getId() { return desc.getName(); }
/** * Get the component id. */ public IComponentIdentifier getComponentIdentifier() { return desc!=null? desc.getName(): null; }
/** * Return a component-identifier that allows to send * messages to this component. */ public IComponentIdentifier getComponentIdentifier() { return desc.getName(); }
/** * String representation of the component. */ public String toString() { return "StandaloneComponentAdapter("+desc.getName().getName()+")"; }
public void resultAvailable(Object result) { ((IComponentManagementService)result).destroyComponent(desc.getName()); } });
public void resultAvailable(IComponentManagementService cms) { // cms.setComponentException(cid, e); // System.err.println("fatal error -> destroy: "+getComponentIdentifier()); // e.printStackTrace(); cms.destroyComponent(desc.getName()); }
public void resultAvailable(IComponentManagementService cms) { // cms.setComponentException(cid, e); // System.err.println("fatal error -> destroy: "+getComponentIdentifier()); // e.printStackTrace(); cms.destroyComponent(desc.getName()); }
/** * Get the id of the component. * @return The component id. */ public IComponentIdentifier getComponentIdentifier() { return info.getComponentDescription().getName(); }
public void resultAvailable(IComponentManagementService cms) { cms.suspendComponent(desc.getName()); }
/** * Create a string representation. */ public String toString() { return desc.getName().getLocalName(); }
public void nodeRemoved(final ITreeNode node) { if(node instanceof IActiveComponentTreeNode) { if(((IActiveComponentTreeNode)node).getDescription().getName().equals(spanel.parent)) spanel.setParent(null); } }
public void nodeRemoved(final ITreeNode node) { if(node instanceof IActiveComponentTreeNode) { if(((IActiveComponentTreeNode)node).getDescription().getName().equals(spanel.parent)) spanel.setParent(null); } }
public void customExceptionOccurred(Exception exception) { removeCMSListener(((IComponentDescription)event.getValue()).getName(), lis); } });
public void customExceptionOccurred(Exception exception) { removeCMSListener(((IComponentDescription)event.getValue()).getName(), lis); } });
public void resultAvailable(Object result) { IComponentManagementService cms = (IComponentManagementService)result; cms.destroyComponent(((IComponentDescription)target.getProperty(ISpaceObject.PROPERTY_OWNER)).getName()); }
public void resultAvailable(Object result) { IComponentManagementService cms = (IComponentManagementService)result; cms.destroyComponent(((IComponentDescription)target.getProperty(ISpaceObject.PROPERTY_OWNER)).getName()); }
/** * Called when a stream was sent to the component. * (Called from message transport). * (Is it ok to call on external thread?). */ public void receiveStream(IConnection con) { if(IComponentDescription.STATE_TERMINATED.equals(desc.getState()) || exception!=null) throw new ComponentTerminatedException(desc.getName()); component.streamArrived(con); }
/** * Called when a stream was sent to the component. * (Called from message transport). * (Is it ok to call on external thread?). */ public void receiveStream(IConnection con) { if(IComponentDescription.STATE_TERMINATED.equals(desc.getState()) || exception!=null) throw new ComponentTerminatedException(desc.getName()); component.streamArrived(con); }
public Icon getSwingOverlay(ISwingTreeNode node) { Icon ret = null; if(node instanceof IActiveComponentTreeNode) { IComponentIdentifier id = ((IActiveComponentTreeNode)node).getDescription().getName(); if(sels.contains(id)) { ret = icons.getIcon("edit_overlay"); } } return ret; }