1 26 27 package org.objectweb.openccm.explorer.Deployment; 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.ComponentServer; 33 import org.omg.Components.Deployment.ServerActivator; 34 35 42 public class RemoveComponentServerFromServerActivator 43 implements MenuItem 44 { 45 46 49 public int getStatus(TreeView treeView){ 50 return MenuItem.ENABLED_STATUS; 51 } 52 53 56 public void actionPerformed(MenuItemTreeView e) throws Exception { 57 ServerActivator serverActivator = (ServerActivator)e.getParentObject(); 58 ComponentServer componentServer = (ComponentServer)e.getSelectedObject(); 59 serverActivator.remove_component_server(componentServer); 60 } 61 62 } | Popular Tags |