[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: How do I disable the File menu item - Save?

Ray Hurst wrote:
It looks like the "Save" and "Save As" operations cannot be disabled ( always enabled).
Is this correct?
If so, then I must detect in the "Save" operation that the filename is incorrect and divert it to the "Save As" operation. Correct?

You should be able to do this in your EditorPart's doSave(*) method ... maybe examining your IEditorInput and diverting to your doSaveAs(*) method.


PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm