1 9 10 package org.enhydra.jawe.actions; 11 12 import java.awt.event.ActionEvent ; 13 import javax.swing.JOptionPane ; 14 import org.enhydra.jawe.JaWE; 15 import org.enhydra.jawe.PackageEditor; 16 import org.enhydra.jawe.ResourceManager; 17 18 21 public class Reopen extends ActionBase { 22 23 public Reopen (PackageEditor editor) { 24 super(editor); 25 } 26 27 public void actionPerformed(ActionEvent e) { 28 String name = JaWE.getInstance().getFilename(); 29 if (name==null) { 30 String msg=ResourceManager.getLanguageDependentString("WarningCannotReopenXPDL"); 31 JaWE.getInstance().message(msg,JOptionPane.WARNING_MESSAGE); 32 return; 33 } 34 if (JaWE.getInstance().close()) { 35 JaWE.getInstance().checkNameAndOpenDocumentIfPossible(name); 36 } 37 } 38 39 } 40 | Popular Tags |