Math2mat

/home/ythoma/docs/math2mat/svn/wp1/framework/m2mGUI/src/m2m/frontend/actions/CommentUncommentAction.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 CommentUncommentAction extends M2MAction {
00025 
00026         public CommentUncommentAction(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_COMMENTUNCOMMENT);
00030         // Associate the action with a pre-defined command, to allow key bindings.
00031                 setActionDefinitionId(ICommandIds.CMD_COMMENTUNCOMMENT);
00032                 //setImageDescriptor(m2mgui.Activator.getImageDescriptor("/icons/Copy.png"));
00033         }
00034 
00038         public void run(){
00039 
00040                 if (!getEditor("Error","Select a correct M2M editor"))
00041                         return;
00042                 editor.comUncom();
00043         }
00044 }
 All Classes Namespaces Files Functions Variables Enumerations