/** * Get the id used for lookup. */ public Object getId() { // return ((ComponentTreeNode)getParent()).getDescription().getName().getName()+toString(); return getParent().getId()+NAME; }
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); } }); } } };