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 Applications extends ActionBase { 24 25 public Applications (AbstractEditor editor) { 26 super(editor); 27 } 28 29 public void actionPerformed(ActionEvent e) { 30 XMLPanel p; 31 XMLElementDialog d; 32 33 if (editor instanceof ProcessEditor) { 34 org.enhydra.jawe.xml.elements.WorkflowProcess wp= 35 (org.enhydra.jawe.xml.elements.WorkflowProcess) 36 editor.getGraph().getPropertyObject(); 37 p=wp.getPanel(5); 38 d=new XMLElementDialog((JDialog)editor.getWindow(), 39 ResourceManager.getLanguageDependentString("ProcessKey")+" '"+ 40 wp.toString()+"' - "+ 41 ResourceManager.getLanguageDependentString("ApplicationsKey")); 42 } else { 43 PackageEditor pe=(PackageEditor)editor; 44 if (!pe.isInitialized()) { 45 pe.enterPackageID(); 46 } 47 p=pe.getXMLPackage().getPanel(7); 48 d=new XMLElementDialog((JFrame)pe.getWindow(), 49 ResourceManager.getLanguageDependentString("PackageKey")+" '"+ 50 pe.getXMLPackage().get("Id").toString()+"' - "+ 51 ResourceManager.getLanguageDependentString("ApplicationsKey")); 52 } 53 d.editXMLElement(p,false,false); 54 55 } 56 } 57 | Popular Tags |