KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > actions > WorkflowRelevantData


1 /*
2  * Authors:
3  * Stefanovic Nenad chupo@iis.ns.ac.yu
4  * Bojanic Sasa sasaboy@neobee.net
5  * Puskas Vladimir vpuskas@eunet.yu
6  * Pilipovic Goran zboniek@uns.ac.yu
7  *
8  */

9
10 package org.enhydra.jawe.actions;
11
12 import org.enhydra.jawe.*;
13 import org.enhydra.jawe.xml.*;
14 import org.enhydra.jawe.xml.elements.*;
15 import org.enhydra.jawe.xml.panels.*;
16
17 import java.awt.event.ActionEvent JavaDoc;
18 import javax.swing.*;
19
20 /**
21 * Class that realizes <B>workflow relevat data</B> action.
22 */

23 public class WorkflowRelevantData extends ActionBase {
24
25    public WorkflowRelevantData (AbstractEditor editor) {
26       super(editor);
27    }
28
29    public void actionPerformed(ActionEvent JavaDoc e) {
30       XMLPanel p;
31       XMLElementDialog d;
32
33       if (editor instanceof ProcessEditor) {
34          org.enhydra.jawe.xml.elements.WorkflowProcess wp=
35                (org.enhydra.jawe.xml.elements.WorkflowProcess)
36                editor.getGraph().getPropertyObject();
37          p=wp.getPanel(6);
38          d=new XMLElementDialog((JDialog)editor.getWindow(),
39                ResourceManager.getLanguageDependentString("ProcessKey")+" '"+
40                wp.toString()+"' - "+
41                ResourceManager.getLanguageDependentString("DataFieldsKey"));
42       } else {
43          PackageEditor pe=(PackageEditor)editor;
44          if (!pe.isInitialized()) {
45             pe.enterPackageID();
46          }
47          p=pe.getXMLPackage().getPanel(8);
48          d=new XMLElementDialog((JFrame)pe.getWindow(),
49                ResourceManager.getLanguageDependentString("PackageKey")+" '"+
50                pe.getXMLPackage().get("Id").toString()+"' - "+
51                ResourceManager.getLanguageDependentString("DataFieldsKey"));
52       }
53       d.editXMLElement(p,false,false);
54    }
55 }
56
57
Popular Tags