Examples of doSaveAs()


Examples of es.iiia.shapeeditor.ShapeEditor.doSaveAs()

 
  public Object execute(ExecutionEvent event) throws ExecutionException {   
    // save depending on active editor
    if (HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().getActiveEditor() != null) {
      ShapeEditor se = (ShapeEditor) HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().getActiveEditor();
      se.doSaveAs();
      LoadHandler.addRecentFile(ShapeGrammarModel.ACTIVE_SHAPE_GRAMMAR.getCurrentFileName());
    } else {
      // TODO: Be sure this does not happen!!!
    }
   
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

        }
        /* **********************************************************************************/

        IEditorPart editor = getActiveEditor();
        if (editor != null) {
            editor.doSaveAs();
        }
    }

    /* (non-Javadoc)
     * Method declared on ActiveEditorAction.
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

    getEditor(0).doSave(monitor);
  }
 
  public void doSaveAs() {
    IEditorPart editor = getEditor(0);
    editor.doSaveAs();
    setInput(editor.getEditorInput());
    setPartName(getEditorInput().getName());
  }
 
  public void gotoMarker(IMarker marker) {
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

   * 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());
  }
 
  /**
 
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

   * 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());
  }

  /*
 
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

   * 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());
  }
  /* (non-Javadoc)
   * Method declared on IEditorPart
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

   * 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());
    setPartName(editor.getTitle());
    setInput(editor.getEditorInput());
  }
 
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

  public void doSaveAs() {
    if (getCurrentPage() != 0) {
      parameterTree.updateText(getCurrentPage() == 1);
    }
    IEditorPart editor = getEditor(0);
    editor.doSaveAs();
    setPartName(editor.getTitle());
    setInput(editor.getEditorInput());
  }

  /*
 
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

  public void doSaveAs() {
    IEditorPart editor = getEditor(0);
    if(currentPageIndex == 1) {
      tableComposite.syncWithTextEditor();
    }
    editor.doSaveAs();
    setPageText(0, editor.getTitle());
    setInput(editor.getEditorInput());
    tableComposite.setDirty(false);
//    tableComposite.syncWithTextEditor();
//    if(getEditor(2) != null) {
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.doSaveAs()

  }
 
  @Override
  public void doSaveAs() {
    IEditorPart editor = getEditor(0);
    editor.doSaveAs();
    setInput(editor.getEditorInput());
    setPartName(getEditorInput().getName());
  }
 
  public void gotoMarker(IMarker marker) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.