1 26 package org.objectweb.openccm.explorer.DCI; 27 28 import org.ist.coach.DCI.DCIDeployment; 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 33 40 public class InstantiateAssembly 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 treeView) throws Exception { 55 AssemblyUUIDWrapper assemblyUUID = (AssemblyUUIDWrapper)treeView.getSelectedObject(); 56 DCIDeployment DCIDeploy = assemblyUUID.getDCIDeployment(); 57 String uuid = assemblyUUID.getUUID(); 58 DCIDeploy.create_assembly_instance(uuid); 59 } 60 61 } 62 | Popular Tags |