KickJava   Java API By Example, From Geeks To Geeks.

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


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>process properties</B> action.
22 */

23 public class ProcessProperties extends ActionBase {
24
25    public ProcessProperties (ProcessEditor pe) {
26       super(pe);
27    }
28
29    public void actionPerformed(ActionEvent JavaDoc e) {
30       org.enhydra.jawe.xml.elements.WorkflowProcess wp=
31          (org.enhydra.jawe.xml.elements.WorkflowProcess)
32             editor.getGraph().getPropertyObject();
33       XMLPanel p1=wp.getPanel(1);
34       XMLPanel p2=wp.getPanel(2);
35       XMLPanel p3=wp.getPanel(3);
36       XMLTabbedPanel p=new XMLTabbedPanel(wp,new XMLPanel[] {p1,p2,p3});
37
38       XMLElementDialog d=new XMLElementDialog((JDialog)editor.getWindow(),
39          ResourceManager.getLanguageDependentString("ProcessKey")+" '"+
40          wp.toString()+"' - "+
41          ResourceManager.getLanguageDependentString("PropertiesKey"));
42       d.editXMLElement(p,true,false);
43       editor.update();
44    }
45 }
46
Popular Tags