KickJava   Java API By Example, From Geeks To Geeks.

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


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

19 public class ViewProcess extends ActionBase {
20
21    public ViewProcess (ProcessInstantiationManagement pim) {
22       super(pim);
23    }
24
25    public void actionPerformed(ActionEvent e) {
26       ProcessInstantiationManagement pim=(ProcessInstantiationManagement)actionPanel;
27       SharkAdmin workflowAdmin=pim.getWorkflowAdmin();
28
29       WfProcessMgr spm=pim.getSelectedProcessMgr();
30       if (spm==null) return;
31       pim.getProcessViewer().showDialog();
32    }
33 }
34
Popular Tags