Math2mat

/home/ythoma/docs/math2mat/svn/wp1/framework/m2mGUI/src/m2m/frontend/actions/RedoAction.java

Go to the documentation of this file.
00001 
00020 package m2m.frontend.actions;
00021 
00022 import org.eclipse.ui.IWorkbenchWindow;
00023 
00024 public class RedoAction extends M2MAction {
00025 
00026         public RedoAction(IWorkbenchWindow window, String label) {
00027                 super(window,label);
00028         // The id is used to refer to the action in a menu or toolbar
00029                 setId(ICommandIds.CMD_REDO);
00030         // Associate the action with a pre-defined command, to allow key bindings.
00031                 setActionDefinitionId(ICommandIds.CMD_REDO);
00032                 setImageDescriptor(m2m.frontend.Activator.getImageDescriptor("/icons/Redo.png"));
00033         }
00034 
00038         public void run(){
00039                 if (!getEditor("Error","Select a correct M2M editor"))
00040                         return;
00041                 editor.redo();
00042         }
00043 }
 All Classes Namespaces Files Functions Variables Enumerations