KickJava   Java API By Example, From Geeks To Geeks.

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


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

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