1 26 27 package org.objectweb.openccm.explorer.DCI; 28 29 import org.objectweb.util.explorer.api.MenuItem; 30 import org.objectweb.util.explorer.api.MenuItemTreeView; 31 import org.objectweb.util.explorer.api.TreeView; 32 import org.omg.Components.Deployment.ComponentInstallation; 33 34 40 public class RemoveFromComponentInstallation 41 implements MenuItem 42 { 43 44 47 public int getStatus(TreeView treeView){ 48 return MenuItem.ENABLED_STATUS; 49 } 50 51 54 public void actionPerformed(MenuItemTreeView e) throws Exception { 55 ComponentInstallation componentInstallation = (ComponentInstallation)e.getParentObject(); 56 String implUUID = ((ArchiveUUID)e.getSelectedObject()).getUUID(); 57 componentInstallation.remove(implUUID); 58 } 59 60 } 61 | Popular Tags |