1 7 8 package org.enhydra.jawe.actions; 9 10 import java.awt.event.ActionEvent ; 11 import java.net.Authenticator ; 12 13 import javax.swing.JFrame ; 14 15 import org.enhydra.jawe.PackageEditor; 16 import org.enhydra.jawe.ResourceManager; 17 import org.enhydra.jawe.wfxml.*; 18 import org.enhydra.jawe.xml.XMLElementDialog; 19 import org.enhydra.jawe.xml.panels.XMLGroupPanel; 20 import org.enhydra.jawe.xml.panels.XMLPanel; 21 22 public class WfXML extends ActionBase{ 23 24 public WfXML (PackageEditor editor) { 25 super(editor); 26 } 27 28 public void actionPerformed(ActionEvent e) { 29 DefInfos dis=new DefInfos(); 30 String t=ResourceManager.getLanguageDependentString("ProcessDefinitionListKey"); 31 dis.setLabelName(t); 32 WfXMLPanel p1=new WfXMLPanel(dis); 33 WfXMLControlPanel p2=new WfXMLControlPanel(dis,p1,"",false,false); 34 XMLGroupPanel gp=new XMLGroupPanel(dis,new XMLPanel[]{ 35 p1,p2},"",XMLPanel.BOX_LAYOUT, 36 true,false); 37 38 XMLElementDialog d=new XMLElementDialog((JFrame )editor.getWindow(), 39 ResourceManager.getLanguageDependentString("WfXMLKey")); 40 Authenticator.setDefault(new WfXMLAuthenticator(d)); 41 d.editXMLElement(gp,false,false); 42 editor.update(); 43 } 44 45 } 46 47 | Popular Tags |