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 19 22 public class HideWindow extends ActionBase { 23 24 public HideWindow (ProcessEditor pe) { 25 super(pe); 26 } 27 28 public void actionPerformed(ActionEvent e) { 29 XMLElementDialog elementEditingDialog= 30 ((ProcessEditor)editor).getElementEditingDialog(); 31 if (elementEditingDialog!=null && elementEditingDialog.isShowing()) { 32 if (elementEditingDialog.canApplyChanges()) { 33 elementEditingDialog.applyChanges(); 34 } else { 35 return; 36 } 37 } 38 elementEditingDialog=null; 39 editor.getWindow().hide(); 40 41 editor.getParentEditor().getStatusBar().updateMessage(); 43 if (!(editor.getParentEditor() instanceof PackageEditor)) { 44 JaWE.getInstance().getPackageEditor().getStatusBar().updateMessage(); 45 } 46 } 47 } 48 | Popular Tags |