svn commit: r12530 - trunk/src_new/org/argouml/uml/ui/ActionCut.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-05-04 10:18:18-0700
New Revision: 12530

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

Log:
Change CmdCut to CutAction

Modified: trunk/src_new/org/argouml/uml/ui/ActionCut.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/ui/ActionCut.java?view=diff&rev=12530&p1=trunk/src_new/org/argouml/uml/ui/ActionCut.java&p2=trunk/src_new/org/argouml/uml/ui/ActionCut.java&r1=12529&r2=12530
==============================================================================
--- trunk/src_new/org/argouml/uml/ui/ActionCut.java	(original)
+++ trunk/src_new/org/argouml/uml/ui/ActionCut.java	2007-05-04 10:18:18-0700
@@ -41,7 +41,7 @@
 
 import org.argouml.application.helpers.ResourceLoaderWrapper;
 import org.argouml.i18n.Translator;
-import org.tigris.gef.base.CmdCut;
+import org.tigris.gef.base.CutAction;
 import org.tigris.gef.base.Globals;
 
 /**
@@ -85,8 +85,9 @@
     public void actionPerformed(ActionEvent ae) {
         if (textSource == null) {
             if (removeFromDiagramAllowed()) {
-                CmdCut cmd = new CmdCut();
-                cmd.doIt();
+                CutAction cmd =
+                        new CutAction(Translator.localize("action.cut"));
+                cmd.actionPerformed(ae);
             }
         } else {
             textSource.cut();
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.