public void actionPerformed(ActionEvent e) { TreePath path = tree.getSelectionPath(); if(path!=null) { final ServiceContainerNode scn = (ServiceContainerNode)path.getPathComponent(path.getPathCount()-2); final ProvidedServiceInfoNode sn = (ProvidedServiceInfoNode)path.getLastPathComponent(); scn.getContainer().removeService(sn.getServiceIdentifier()).addResultListener(new SwingDefaultResultListener(proppanel) { public void customResultAvailable(Object result) { scn.removeChild(sn); } }); } } };
public void exceptionOccurred(Exception exception) { System.out.println("ex on: "+getId()); // exception.printStackTrace(); } });
AbstractJCCPlugin.getClassLoader(((IActiveComponentTreeNode)node.getParent().getParent()).getComponentIdentifier(), jcc) .addResultListener(new ExceptionDelegationResultListener<ClassLoader, JComponent>(ret)
if(node instanceof ProvidedServiceInfoNode) final IServiceIdentifier sid = ((ProvidedServiceInfoNode)node).getServiceIdentifier(); if(sid!=null)
IServiceIdentifier sid = ((ProvidedServiceInfoNode)node).getServiceIdentifier(); IFuture<Object> fut = SServiceProvider.getService(access.getServiceProvider(), sid); fut.addResultListener(new SwingDefaultResultListener<Object>()
if(node instanceof ProvidedServiceInfoNode) final IServiceIdentifier sid = ((ProvidedServiceInfoNode)node).getServiceIdentifier(); if(sid!=null)
SServiceProvider.getService(jcc.getJCCAccess().getServiceProvider(), node.getServiceIdentifier()) .addResultListener(new ExceptionDelegationResultListener<Object, JComponent>(ret)
IFuture<IService> fut = SServiceProvider.getService(getJCC().getJCCAccess().getServiceProvider(), node.getServiceIdentifier()); fut.addResultListener(new SwingDefaultResultListener<IService>(comptree)