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.CCMHome; 32 import org.omg.Components.Deployment.Container; 33 34 42 public class RemoveHomeFromContainer 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 CCMHome home = (CCMHome) e.getSelectedObject(); 58 Container container = (Container) e.getParentObject(); 59 container.remove_home(home); 60 } 61 62 } 63 | Popular Tags |