Examples of doSave()


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

      MessageDialog.openWarning(window.getShell(), "JSTools", "Resource "
          + editorInput.getName() + " is not part of the workspace!");
    }

    if (activeEditor.isDirty()) {
      activeEditor.doSave(null);
    }
    new JSBeautifier().beautify(file);
    return null;
  }
}
View Full Code Here

Examples of org.eclipse.ui.ISaveablePart.doSave()

   * @see org.eclipse.ui.Saveable#doSave(org.eclipse.core.runtime.IProgressMonitor)
   */
  public void doSave(IProgressMonitor monitor) {
    if (part instanceof ISaveablePart) {
      ISaveablePart saveable = (ISaveablePart) part;
      saveable.doSave(monitor);
    }
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.ui.texteditor.ITextEditor.doSave()

        op.run(JSPSearchSupport.getInstance().getProgressMonitor());
      } else {
        //editor save must be done on UI thread
        IRunnableWithProgress runnable= new IRunnableWithProgress() {
          public void run(IProgressMonitor pm) throws InterruptedException {
            editor.doSave(pm);
          }
        };
        PlatformUI.getWorkbench().getProgressService().runInUI(editor.getSite().getWorkbenchWindow(), runnable, null);
      }
    } catch (InvocationTargetException e) {
View Full Code Here

Examples of org.openstreetmap.josm.actions.SaveAction.doSave()

          Boolean savefailed = false;
          for (final Layer l : map.mapView.getAllLayers()) {
            if (l instanceof OsmDataLayer
                && ((OsmDataLayer) l).isModified()) {
              SaveAction save = new SaveAction(l);
              if (!save.doSave())
                savefailed = true;
            }
          }
          return savefailed;
        } else if (result != 2) // Cancel exiting unless the 2nd button
View Full Code Here

Examples of org.springframework.ide.eclipse.config.core.IConfigEditorPage.doSave()

  public void doSave(IProgressMonitor monitor) {
    sourceEditor.doSave(monitor);
    for (Object obj : pages) {
      if (obj instanceof IConfigEditorPage) {
        IConfigEditorPage page = (IConfigEditorPage) obj;
        page.doSave(monitor);
      }
    }
  }

  /**
 
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.