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 33 41 public class RemoveComponentServer 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 ComponentServer cs = (ComponentServer) e.getSelectedObject(); 57 cs.remove(); 58 } 59 60 } 61 | Popular Tags |