Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IProgressMonitor.worked()


            IClasspathEntry[] oldEntries = fJavaProject.getRawClasspath();
            IClasspathEntry[] newEntries = new IClasspathEntry[oldEntries.length + 1];
            System.arraycopy(oldEntries, 0, newEntries, 0, oldEntries.length);
            newEntries[oldEntries.length] = JavaCore.newSourceEntry(root.getPath());
            fJavaProject.setRawClasspath(newEntries, null);
            monitor.worked(1);
        } finally {
            monitor.done();
        }
    }
View Full Code Here


            IFolder sourceFolder = fProject.getFolder(sourceFolderName);
            IPackageFragmentRoot javaRoot = fJavaProject.getPackageFragmentRoot(sourceFolder);
            javaRoot.createPackageFragment(packageName, false, null);

            monitor.worked(1);
        } finally {
            monitor.done();
        }
    }
View Full Code Here

            IClasspathEntry[] oldEntries = javaProject.getRawClasspath();
            IClasspathEntry[] newEntries = new IClasspathEntry[oldEntries.length + 1];
            System.arraycopy(oldEntries, 0, newEntries, 0, oldEntries.length);
            newEntries[oldEntries.length] = JavaCore.newLibraryEntry(jar, null, null);
            javaProject.setRawClasspath(newEntries, null);
            monitor.worked(1);
        } finally {
            monitor.done();
        }
    }
View Full Code Here

      if (Activator.getStore().getBoolean(Constants.P_BUILDER_GENERATE_ASYNC)) {
        monitor.beginTask("Building Remote Service's...", 2);
        //
        monitor.subTask("Looking for RemoteService Files");
        findRemoteServiceFiles();
        monitor.worked(1);
        //
        monitor.subTask("Updating RemoteService's Async and Impl parts");
        updateRemoteServices();
        monitor.worked(1);
      }
View Full Code Here

        findRemoteServiceFiles();
        monitor.worked(1);
        //
        monitor.subTask("Updating RemoteService's Async and Impl parts");
        updateRemoteServices();
        monitor.worked(1);
      }
      {
        monitor.beginTask("Checking *.GWT.XML modifications...", 1);
        checkModuleFileModification();
        monitor.worked(1);
View Full Code Here

        monitor.worked(1);
      }
      {
        monitor.beginTask("Checking *.GWT.XML modifications...", 1);
        checkModuleFileModification();
        monitor.worked(1);
      }
    }
  }

  ////////////////////////////////////////////////////////////////////////////
View Full Code Here

        runnable.run();
        progressMonitor.subTask(WorkbenchMessages.Startup_Done);
        int remainingWork = expectedProgressCount
            - Math.min(progressCount,
                (int) (expectedProgressCount * cutoff));
        progressMonitor.worked(remainingWork);
        progressMonitor.done();
      } finally {
        WorkbenchPlugin.getDefault().removeBundleListener(
            bundleListener);
      }
View Full Code Here

        // rewrite         
        String newID = generateNewID(e, existingIDs);
        e.setId(newID);
        existingIDs.add(newID);
      }
      sub.worked(1);
     
      Iterator<EObject> it = model.eAllContents();
      while (it.hasNext()) {
        EObject obj = it.next();
        if (obj instanceof GeneratedElement) {
View Full Code Here

          // rewrite         
          String newID = generateNewID(e, existingIDs);
          e.setId(newID);
          existingIDs.add(newID);
        }
        sub.worked(1);
      }
    }
    sub.done();
   
    // now save
View Full Code Here

    try {
      loadedModel = ModelLoader.load(o);
    } catch (ModelLoadException e) {
      return errorStatus(e);
    }
    monitor.worked(10);
   
    // load the handler to remove elements
    EcoreInferenceHandler handler = new EcoreInferenceHandler(loadedModel.eResource());
   
    // actually remove the edges
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.