KickJava   Java API By Example, From Geeks To Geeks.

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


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
14 import org.enhydra.jawe.xml.*;
15 import org.enhydra.jawe.xml.panels.*;
16
17 import javax.swing.*;
18 import java.awt.event.ActionEvent JavaDoc;
19
20 /**
21  * Class that realizes <B>type declarations</B> action.
22  */

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