Java Code Examples for org.eclipse.ui.IEditorPart#doSaveAs()
The following examples show how to use
org.eclipse.ui.IEditorPart#doSaveAs() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MultiPageEditor.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void doSaveAs() { IEditorPart editor = getEditor(0); editor.doSaveAs(); setPageText(0, editor.getTitle()); setInput(editor.getEditorInput()); }
Example 2
Source File: ImpexPageEditor.java From hybris-commerce-eclipse-plugin with Apache License 2.0 | 5 votes |
/** * Saves the multi-page editor's document as another file. Also updates the text for page 0's tab, and updates this * multi-page editor's input to correspond to the nested editor's. */ public void doSaveAs() { IEditorPart editor = getEditor(0); editor.doSaveAs(); setPageText(0, editor.getTitle()); setInput(editor.getEditorInput()); }