1 9 10 package org.enhydra.jawe.actions; 11 12 import org.enhydra.jawe.*; 13 import java.awt.event.ActionEvent ; 14 15 18 public class SaveAs extends Save { 19 20 public SaveAs (PackageEditor editor) { 21 super(editor,"SaveAs"); 22 } 23 24 public void actionPerformed(ActionEvent e) { 25 PackageEditor pe=JaWE.getInstance().getPackageEditor(); 26 if (!pe.isInitialized()) { 27 pe.enterPackageID(); 28 } 29 String oldFilename=JaWE.getInstance().getFilename(); 30 JaWE.getInstance().setFilename(null); 31 super.actionPerformed(e); 32 if (JaWE.getInstance().getFilename()==null) { 33 JaWE.getInstance().setFilename(oldFilename); 34 } 35 pe.update(); 36 } 37 } 38 | Popular Tags |