Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation


    /* (non-Javadobc)
     * @see org.eclipse.jface.wizard.IWizard#performFinish()
     */
    public boolean performFinish() {
               
        WorkspaceModifyOperation op = new WorkspaceModifyOperation()
        {
           protected void execute(IProgressMonitor monitor)
           {
              if (monitor == null)
                 monitor = new NullProgressMonitor();
View Full Code Here


      final String saveLocation, final int outputFormat) {
    try {
      new ProgressMonitorDialog(getSite().getShell()).run(false,
      // don't fork
          true, // is cancelable
          new WorkspaceModifyOperation() { // run this operation
            @Override
            public void execute(final IProgressMonitor monitor) {
              monitor.beginTask(MusicMessages.MeiseEditor_42, 3);
              Rectangle bounds = getEditorViewport().getBounds();
              org.eclipse.draw2d.geometry.Point location = getEditorViewport()
View Full Code Here

   * explorer, on F3, Contextmenu "Open" or "Open with:MEI Editor" it never
   * shows.
   */
  private void openNewEditorTab(final String fileName,
      final String preValidationResult, final InputStream inputStream) {
    WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
      @Override
      public void execute(final IProgressMonitor monitor) {
        try {
          // offset: initializing JAXB needs a LOT of time, but only
          // once
View Full Code Here

        final FileStoreEditorInput input = new FileStoreEditorInput(
            store);
        new ProgressMonitorDialog(getSite().getWorkbenchWindow()
            .getShell()).run(false, // don't fork
            false, // not cancelable
            new WorkspaceModifyOperation() { // run this operation
              @Override
              public void execute(final IProgressMonitor monitor) {
                monitor.beginTask(MusicMessages.MeiseEditor_8,
                    2);
                setValidPartName(input.getName());
View Full Code Here

  /**
   * Starts up the JAXB Parser at constructor call time
   */
  private void startupJAXBInstance() {
    WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
      @Override
      public void execute(final IProgressMonitor monitor) {
        SubMonitor progress = SubMonitor.convert(monitor, 1);
        progress.setTaskName(MusicMessages.MeiseEditor_4);
        progress.setWorkRemaining(1);
View Full Code Here

   * This method is called when 'Finish' button is pressed in
   * the wizard. We will create an operation and run it
   * using wizard as execution context.
   */
  public boolean performFinish() {
    WorkspaceModifyOperation op= new WorkspaceModifyOperation() {
      protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
        finishPage(monitor);
      }
    };
    try {
View Full Code Here

      //
      final IFile modelFile = getModelFile();

      // Do the work within an operation.
      //
      WorkspaceModifyOperation operation =
        new WorkspaceModifyOperation() {
          @Override
          protected void execute(IProgressMonitor progressMonitor) {
            try {
              // Create a resource set
              //
View Full Code Here

  /**
   * @generated
   */
  public boolean performFinish() {
    IRunnableWithProgress op = new WorkspaceModifyOperation(null) {

      protected void execute(IProgressMonitor monitor)
          throws CoreException, InterruptedException {
        diagram = eu.admire.visual.pmml.neuralnetwork._40.diagram.part.PMMLDiagramEditorUtil
            .createDiagram(diagramModelFilePage.getURI(),
View Full Code Here

  /**
   * @generated
   */
  public boolean performFinish() {
    IRunnableWithProgress op = new WorkspaceModifyOperation(null) {

      protected void execute(IProgressMonitor monitor)
          throws CoreException, InterruptedException {
        diagram = DispelDiagramEditorUtil.createDiagram(
            diagramModelFilePage.getURI(),
View Full Code Here

    final Map<Object, Object> saveOptions = new HashMap<Object, Object>();
    saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);

    // Do the work within an operation because this is a long running activity that modifies the workbench.
    //
    WorkspaceModifyOperation operation =
      new WorkspaceModifyOperation() {
        // This is the method that gets invoked when the operation runs.
        //
        @Override
        public void execute(IProgressMonitor monitor) {
          // Save the resources to the file system.
View Full Code Here

TOP

Related Classes of org.eclipse.ui.actions.WorkspaceModifyOperation

Copyright © 2018 www.massapicom. 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.