Math2mat

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

Go to the documentation of this file.
00001 
00019 package m2m.frontend.actions;
00020 
00021 import org.eclipse.ui.IWorkbenchWindow;
00022 
00023 import m2m.frontend.actions.M2MAction;
00024 
00029 public class CompareOctaveResults extends M2MAction {
00030         
00031         public CompareOctaveResults(IWorkbenchWindow window, String label) {
00032                 super(window,label);
00033         // The id is used to refer to the action in a menu or toolbar
00034                 setId(ICommandIds.CMD_COMPAREOCTAVERESULTS);
00035         // Associate the action with a pre-defined command, to allow key bindings.
00036                 setActionDefinitionId(ICommandIds.CMD_COMPAREOCTAVERESULTS);
00037                 //setImageDescriptor(m2mgui.Activator.getImageDescriptor("/icons/parser.gif"));
00038         }
00039 
00043         public void run() {
00044                 if (!getEditor("Error","There is no opened file to parse"))
00045                         return;
00046                 activateConsole();
00047                 
00048                 editor.getM2MProject().compareOctaveResult();                   
00049         }
00050         
00051 }
 All Classes Namespaces Files Functions Variables Enumerations