1 26 package org.objectweb.openccm.explorer.Deployment; 27 28 import org.objectweb.util.explorer.api.MenuItem; 29 import org.objectweb.util.explorer.api.MenuItemTreeView; 30 import org.objectweb.util.explorer.api.TreeView; 31 import org.omg.Components.Deployment.ComponentServer; 32 import org.omg.Components.Deployment.Container; 33 34 42 public class RemoveContainerFromComponentServer 43 implements MenuItem 44 { 45 46 49 public int getStatus(TreeView arg0){ 50 return MenuItem.ENABLED_STATUS; 51 } 52 53 56 public void actionPerformed(MenuItemTreeView e) throws Exception { 57 Container c = (Container) e.getSelectedObject(); 58 ComponentServer cs = (ComponentServer) e.getParentObject(); 59 cs.remove_container(c); 60 } 61 62 } 63 | Popular Tags |