KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.util.*;
19 import javax.swing.*;
20
21 /**
22 * Class that realizes <B>activities overview</B> action.
23 */

24 public class ActivitiesOverview extends ActionBase {
25
26    public ActivitiesOverview (ProcessEditor pe) {
27       super(pe);
28    }
29
30    public void actionPerformed(ActionEvent JavaDoc e) {
31       org.enhydra.jawe.xml.elements.WorkflowProcess wp=
32          (org.enhydra.jawe.xml.elements.WorkflowProcess)
33             editor.getGraph().getPropertyObject();
34       XMLPanel p=wp.getPanel(8);
35       XMLElementDialog d=new XMLElementDialog((JDialog)editor.getWindow(),
36          ResourceManager.getLanguageDependentString("ProcessKey")+" '"+
37          wp.toString()+"' - "+
38          ResourceManager.getLanguageDependentString("ActivitiesOverviewKey"));
39       d.editXMLElement(p,false,false);
40       /*org.enhydra.jawe.xml.elements.Activities acts=
41          (org.enhydra.jawe.xml.elements.Activities)wp.get("Activities");
42       Collection as=acts.toCollection();
43       editor.getGraph().clearSelection();
44        editor.getGraph().setSelectionCells(as.toArray());*/

45    }
46 }
47    
48
Popular Tags