KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > swingclient > workflowadmin > application > actions > AddApplicationMapping


1 package org.enhydra.shark.swingclient.workflowadmin.application.actions;
2
3 import java.awt.event.*;
4 import java.util.Map JavaDoc;
5
6 import org.enhydra.shark.swingclient.*;
7 import org.enhydra.shark.swingclient.workflowadmin.*;
8 import org.enhydra.shark.swingclient.workflowadmin.application.*;
9
10 /**
11  * Creates new xpdl application to tool agent application mapping.
12  *
13  * @author Sasa Bojanic
14  * @version 1.0
15  */

16 public class AddApplicationMapping extends ActionBase {
17
18    public AddApplicationMapping (ApplicationMappingManagement pm) {
19       super(pm);
20    }
21
22    public void actionPerformed(ActionEvent e) {
23       ApplicationMappingManagement pmm=(ApplicationMappingManagement)actionPanel;
24       SharkAdmin workflowAdmin=pmm.getWorkflowAdmin();
25
26       Map JavaDoc allProc=null;
27       try {
28          allProc=SharkAdmin.getApplicationMappingsAdmin().getToolAgentsInfo();
29       } catch (Exception JavaDoc ex) {
30       }
31       ApplicationMapping pm=new ApplicationMapping(
32          pmm,
33          pmm.getApplicationKeyToApplication().values(),
34          allProc);
35       pm.showDialog();
36    }
37
38 }
39
Popular Tags