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 40 public class CreateContainer 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 ComponentServer cs = (ComponentServer) e.getSelectedObject(); 56 org.omg.Components.ConfigValue[] config = new org.omg.Components.ConfigValue[0]; 57 cs.create_container(config); 58 } 59 60 } 61 | Popular Tags |