1 26 package org.objectweb.openccm.explorer.Components; 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.CCMObject; 33 34 41 public class RemoveComponentFromHome 42 implements MenuItem 43 { 44 45 48 public int getStatus(TreeView arg0){ 49 return MenuItem.ENABLED_STATUS; 50 } 51 52 55 public void actionPerformed(MenuItemTreeView e) throws Exception { 56 CCMObject component = (CCMObject) e.getSelectedObject(); 57 CCMHome home = (CCMHome) e.getParentObject(); 58 home.remove_component(component); 59 } 60 61 } 62 | Popular Tags |