Package org.eclipse.core.runtime

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


    IJavaProject project = JavaCore.create(file.getProject());
    IPackageFragment root = getPackageFragment(project, prefix);
    ICompilationUnit unit = root.getCompilationUnit("_xxx.java").getWorkingCopy(
        CompilationUnitHelper.getInstance().getWorkingCopyOwner(),
        CompilationUnitHelper.getInstance().getProblemRequestor(), progressMonitor);
    progressMonitor.done();
    return unit;
  }

  private static IPackageFragment getPackageFragment(IJavaProject project, String prefix) throws JavaModelException {
    int dot = prefix.lastIndexOf('.');
View Full Code Here


        executable.execute(subMonitor);
      }
    };
    SafeRunner.run(code);

    subMonitor.done();
  }

  protected interface SafeExecutableWithMonitor {

    void execute(IProgressMonitor monitor) throws Exception;
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.