svn commit: r13508 - trunk/src_new/org/argouml/uml/ui/ActionOpenProject.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2007-09-07 16:44:13-0700
New Revision: 13508

Modified:
   trunk/src_new/org/argouml/uml/ui/ActionOpenProject.java

Log:
Extends UndoableAction (but this isn't undoable - we need a better name)

Modified: trunk/src_new/org/argouml/uml/ui/ActionOpenProject.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/ui/ActionOpenProject.java?view=diff&rev=13508&p1=trunk/src_new/org/argouml/uml/ui/ActionOpenProject.java&p2=trunk/src_new/org/argouml/uml/ui/ActionOpenProject.java&r1=13507&r2=13508
==============================================================================
--- trunk/src_new/org/argouml/uml/ui/ActionOpenProject.java	(original)
+++ trunk/src_new/org/argouml/uml/ui/ActionOpenProject.java	2007-09-07 16:44:13-0700
@@ -27,7 +27,6 @@
 import java.awt.event.ActionEvent;
 import java.io.File;
 
-import javax.swing.AbstractAction;
 import javax.swing.Action;
 import javax.swing.JFileChooser;
 import javax.swing.filechooser.FileFilter;
@@ -42,6 +41,7 @@
 import org.argouml.persistence.PersistenceManager;
 import org.argouml.ui.ArgoFrame;
 import org.argouml.ui.ProjectBrowser;
+import org.argouml.ui.UndoableAction;
 
 /**
  * Action that loads the project.
@@ -50,7 +50,7 @@
  *
  * @see ActionSaveProject
  */
-public class ActionOpenProject extends AbstractAction
+public class ActionOpenProject extends UndoableAction
     implements CommandLineInterface {
 
     ////////////////////////////////////////////////////////////////
@@ -77,6 +77,7 @@
      * @param e an event
      */
     public void actionPerformed(ActionEvent e) {
+        super.actionPerformed(e);
         Project p = ProjectManager.getManager().getCurrentProject();
         PersistenceManager pm = PersistenceManager.getInstance();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.