Math2mat

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

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