Package com.subhajit.eclipse.swt

Examples of com.subhajit.eclipse.swt.SwtProgressImpl


      IWorkbench wb = PlatformUI.getWorkbench();
      IProgressService ps = wb.getProgressService();
      ps.busyCursorWhile(new IRunnableWithProgress() {
        public void run(IProgressMonitor progressMonitor) {
          try {
            IProgress progress = new SwtProgressImpl(
                progressMonitor);
            ProjectUtils.updateProjectLocations(progress);
            List<IJavaProject> dependentProjects = BuildUtils
                .getDependentProjects(javaProject, progress);
            progress.setRange(0, dependentProjects.size());
            int index = 0;
            for (IJavaProject project : dependentProjects) {
              progress.increment(1, "Building "
                  + project.getProject().getName());
              BuildUtils.buildJavaProjectInteractively0(project,
                  progress, buildKind, problems);
              progress.setRange(0, dependentProjects.size());
              for (int i = 0; i < index; i++) {
                progress.increment(1, "");
              }
              index++;
            }
            BuildUtils.buildJavaProjectInteractively0(javaProject,
                progress, buildKind, problems);
View Full Code Here

TOP

Related Classes of com.subhajit.eclipse.swt.SwtProgressImpl

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.