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.ServerActivator; 33 34 42 public class CreateComponentServer 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.getSelectedObject(); 58 serverActivator.create_component_server(new org.omg.Components.ConfigValue[0]); 59 } 60 61 } | Popular Tags |