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 33 40 public class RemoveHome 41 implements MenuItem 42 { 43 44 47 public int getStatus(TreeView arg0){ 48 return MenuItem.ENABLED_STATUS; 49 } 50 51 54 public void actionPerformed(MenuItemTreeView e) throws Exception { 55 CCMHome home = (CCMHome) e.getSelectedObject(); 56 home.remove_home(); 57 } 58 59 } 60 | Popular Tags |