public void resultAvailable(IComponentManagementService cms) { cms.suspendComponent(desc.getName()); }
public void resultAvailable(IComponentManagementService cms) { cms.suspendComponent(desc.getName()); }
public void resultAvailable(IComponentManagementService cms) { cms.suspendComponent(desc.getName()); }
public void resultAvailable(IComponentManagementService cms) { cms.suspendComponent(desc.getName()); }
public void customResultAvailable(IComponentManagementService rcms) { rcms.suspendComponent(cid).addResultListener(new DelegationResultListener<Void>(ret)); } });
public void customResultAvailable(IComponentManagementService rcms) { rcms.suspendComponent(cid).addResultListener(createResultListener(new DelegationResultListener<Void>(fut))); } }));
public void customResultAvailable(IComponentManagementService rcms) { rcms.suspendComponent(cid).addResultListener(createResultListener(new DelegationResultListener<Void>(ret))); } }));
public void customResultAvailable(IComponentManagementService rcms) { rcms.suspendComponent(cid).addResultListener(createResultListener(new DelegationResultListener<Void>(ret))); } }));
public void actionPerformed(ActionEvent e) { if(cms!=null) { TreePath[] paths = tree.getSelectionPaths(); for(int i=0; paths!=null && i<paths.length; i++) { final IComponentIdentifier cid = ((IActiveComponentTreeNode)paths[i].getLastPathComponent()).getDescription().getName(); final ISwingTreeNode sel = (ISwingTreeNode)paths[i].getLastPathComponent(); cms.suspendComponent(cid).addResultListener(new SwingDefaultResultListener(ComponentTreePanel.this) { public void customResultAvailable(Object result) { // Required for remote nodes. sel.refresh(false); } }); } } } };
/** * Execute a plan. */ public void body() { IComponentIdentifier cid = (IComponentIdentifier)getParameter("componentidentifier").getValue(); IFuture ret =((IComponentManagementService)getServiceContainer().getRequiredService("cms").get(this)).suspendComponent(cid); IComponentDescription desc = (IComponentDescription)ret.get(this); getParameter("componentdescription").setValue(desc); } }
cms.suspendComponent(getComponent().getComponentDescription().getName());