public void customResultAvailable(IComponentManagementService rcms) { rcms.resumeComponent(cid).addResultListener(new DelegationResultListener<Void>(ret)); } });
public void customResultAvailable(IComponentManagementService rcms) { rcms.resumeComponent(cid).addResultListener(createResultListener(new DelegationResultListener<Void>(ret))); } }));
public void customResultAvailable(IComponentManagementService rcms) { rcms.resumeComponent(cid).addResultListener(createResultListener(new DelegationResultListener<Void>(ret))); } }));
public void customResultAvailable(IComponentManagementService rcms) { rcms.resumeComponent(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.resumeComponent(cid).addResultListener(new SwingDefaultResultListener(ComponentTreePanel.this) { public void customResultAvailable(Object result) { // Required for remote nodes. sel.refresh(false); } }); } } } };
cms.resumeComponent(cid).addResultListener(new SwingDefaultResultListener(ComponentTreePanel.this)
/** * Execute a plan. */ public void body() { IComponentIdentifier aid = (IComponentIdentifier)getParameter("componentidentifier").getValue(); IFuture ret = ((IComponentManagementService)getServiceContainer().getRequiredService("cms").get(this)).resumeComponent(aid); IComponentDescription desc = (IComponentDescription) ret.get(this); getParameter("componentdescription").setValue(desc); }
/** * The plan body. */ public void body() { IComponentManagementService cms = (IComponentManagementService)getServiceContainer().getRequiredService("cms").get(this); IComponentIdentifier root = getScope().getComponentIdentifier(); boolean foundroot = false; while(!foundroot) { IComponentIdentifier parent = (IComponentIdentifier)cms.getParent(root).get(this); if(parent==null) foundroot = true; else root = parent; } cms.resumeComponent(root).get(this); cms.destroyComponent(root); } }