KickJava   Java API By Example, From Geeks To Geeks.

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


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.panels.*;
15
16 import javax.swing.*;
17 import java.awt.event.ActionEvent JavaDoc;
18
19 /**
20  * Class that realizes <B>processes</B> action.
21  */

22 public class Processes extends ActionBase {
23
24    public Processes (PackageEditor editor) {
25       super(editor);
26    }
27
28    public void actionPerformed(ActionEvent JavaDoc e) {
29       PackageEditor pe=(PackageEditor)editor;
30       if (!pe.isInitialized()) {
31          pe.enterPackageID();
32       }
33       XMLPanel p=pe.getXMLPackage().getPanel(9);
34
35       XMLElementDialog d=new XMLElementDialog((JFrame)pe.getWindow(),
36          ResourceManager.getLanguageDependentString("PackageKey")+" '"+
37          pe.getXMLPackage().get("Id").toString()+"' - "+
38          ResourceManager.getLanguageDependentString("ProcessesLabel"));
39       d.editXMLElement(p,false,false);
40    }
41 }
42
Popular Tags