KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > swingclient > workflowadmin > instantiation > actions > ProcessDescription


1 package org.enhydra.shark.swingclient.workflowadmin.instantiation.actions;
2
3 import java.awt.event.*;
4
5
6
7 import org.enhydra.shark.api.client.wfmodel.*;
8 import org.enhydra.shark.swingclient.*;
9 import org.enhydra.shark.swingclient.workflowadmin.*;
10 import org.enhydra.shark.swingclient.workflowadmin.instantiation.*;
11
12 /**
13  * Shows description of selected process.
14  *
15  * @author Sasa Bojanic
16  * @version 1.0
17  */

18 public class ProcessDescription extends ActionBase {
19
20    public ProcessDescription (ProcessInstantiationManagement pim) {
21       super(pim);
22    }
23
24    public void actionPerformed(ActionEvent e) {
25       ProcessInstantiationManagement pim=(ProcessInstantiationManagement)actionPanel;
26       SharkAdmin workflowAdmin=pim.getWorkflowAdmin();
27
28       WfProcessMgr spm=pim.getSelectedProcessMgr();
29       if (spm!=null) {
30          try {
31             String JavaDoc desc=ResourceManager.getLanguageDependentString("DescriptionKey");
32             ItemView iv=new ItemView(workflowAdmin.getFrame(),
33                   desc+" - "+spm.name(),
34                   desc,
35                   spm.description());
36             iv.showDialog();
37          } catch (Exception JavaDoc ex) {}
38       }
39    }
40
41 }
42
Popular Tags