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.KeylessCCMHome; 32 33 41 public class ComponentCreationAction 42 implements MenuItem 43 { 44 45 51 57 63 69 72 public int getStatus(TreeView arg0){ 73 return MenuItem.ENABLED_STATUS; 74 } 75 76 79 public void actionPerformed(MenuItemTreeView e) throws Exception { 80 KeylessCCMHome home = (KeylessCCMHome) e.getSelectedObject(); 81 home.create_component(); 82 } 83 84 } 85 | Popular Tags |