1 package org.enhydra.shark.corbaclient.workflowadmin.application.actions; 2 3 import org.omg.WfBase.NameValue; 4 import java.awt.event.ActionEvent ; 5 import java.util.HashMap ; 6 import java.util.Map ; 7 import org.enhydra.shark.corbaclient.ActionBase; 8 import org.enhydra.shark.corbaclient.workflowadmin.SharkAdmin; 9 import org.enhydra.shark.corbaclient.workflowadmin.application.ApplicationMapping; 10 import org.enhydra.shark.corbaclient.workflowadmin.application.ApplicationMappingManagement; 11 12 18 public class AddApplicationMapping extends ActionBase { 19 20 public AddApplicationMapping (ApplicationMappingManagement pm) { 21 super(pm); 22 } 23 24 public void actionPerformed(ActionEvent e) { 25 ApplicationMappingManagement pmm=(ApplicationMappingManagement)actionPanel; 26 SharkAdmin workflowAdmin=pmm.getWorkflowAdmin(); 27 28 NameValue[] allProc=null; 29 Map m=new HashMap (); 30 try { 31 allProc=SharkAdmin.getMappingAdmin().getToolAgentsInfo(); 32 for (int i=0; i<allProc.length; i++) { 33 m.put(allProc[i].the_name,allProc[i].the_value.extract_wstring()); 34 } 35 } catch (Exception ex) { 36 } 37 38 ApplicationMapping pm=new ApplicationMapping( 39 pmm, 40 pmm.getApplicationKeyToApplication().values(), 41 m); 42 pm.showDialog(); 43 } 44 45 } 46 | Popular Tags |