1 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 ; 18 import javax.swing.*; 19 20 23 public class Namespaces extends ActionBase { 24 25 public Namespaces (PackageEditor pe) { 26 super(pe); 27 } 28 29 public void actionPerformed(ActionEvent e) { 30 PackageEditor pe=(PackageEditor)editor; 31 if (!pe.isInitialized()) { 32 pe.enterPackageID(); 33 } 34 org.enhydra.jawe.xml.elements.Package pkg=pe.getXMLPackage(); 35 XMLPanel p=pkg.getPanel(10); 36 XMLElementDialog d=new XMLElementDialog((JFrame)editor.getWindow(), 37 ResourceManager.getLanguageDependentString("PackageKey")+" '"+ 38 pkg.toString()+"' - "+ 39 ResourceManager.getLanguageDependentString("NamespacesKey")); 40 d.editXMLElement(p,false,false); 41 } 42 } 43 | Popular Tags |