KickJava   Java API By Example, From Geeks To Geeks.

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


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

18 public class ViewProcess extends ActionBase {
19
20    public ViewProcess (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) return;
30       pim.getProcessViewer().showDialog();
31    }
32 }
33
Popular Tags