Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.SubMonitor.beginTask()


    addClassPathEntry(JavaCore.newLibraryEntry(path, null, null), null);
  }

  private IFolder createFolder(String folderName, IProgressMonitor monitor) throws CoreException {
    SubMonitor sub = SubMonitor.convert(monitor, 1);
    sub.beginTask("Creating " + folderName + "folder.", 1);
   
    IFolder folder = theProject.getFolder(folderName);
   
    if(!folder.exists()) {
      folder.create(false, true, sub.newChild(1));
View Full Code Here


    return folder;
  }
 
  private void addClassPathEntry(IClasspathEntry entry, IProgressMonitor monitor) throws JavaModelException {
    SubMonitor sub = SubMonitor.convert(monitor, 1);
    sub.beginTask("Adding class path entry.", 1);
   
    IClasspathEntry[] oldEntries= theJavaProject.getRawClasspath();
    IClasspathEntry[] newEntries= new IClasspathEntry[oldEntries.length + 1];
    System.arraycopy(oldEntries, 0, newEntries, 0, oldEntries.length)
    newEntries[oldEntries.length] = entry;
View Full Code Here

    if (resource == null || isNonWorkspace(resource)) {
      subMonitor.done();
      return null;
    }

    subMonitor.beginTask(NLS.bind(
        CoreText.GitResourceVariantTree_fetchingVariant,
        resource.getName()), IProgressMonitor.UNKNOWN);
    try {
      return fetchVariant(resource);
    } finally {
View Full Code Here

      /*
       * This should not be needed, but things don't work properly when it's not
       * called.
       */
      monitor.beginTask(monitorText, DEFRAG_TOTAL_WORK);
    } else {
      monitor = subMonitor.newChild(10);
      monitor.setWorkRemaining(100);
    }

View Full Code Here

            monitor = new NullProgressMonitor();
        }
       
        try {
            SubMonitor subMonitor = SubMonitor.convert(monitor, 1000);
            subMonitor.beginTask("Generating MyBatis/iBATIS Artifacts:", 1000);
            subMonitor.subTask("Parsing Configuration");
           
            Properties p = propertyset == null ? null : propertyset.getProperties();
           
            ConfigurationParser cp = new ConfigurationParser(p,
View Full Code Here

     *
     * @see org.eclipse.core.resources.IWorkspaceRunnable#run(org.eclipse.core.runtime.IProgressMonitor)
     */
    public void run(IProgressMonitor monitor) throws CoreException {
        SubMonitor subMonitor = SubMonitor.convert(monitor, 1000);
        subMonitor.beginTask("Generating MyBatis/iBATIS Artifacts:", 1000);
       
        setClassLoader();
       
        try {
            subMonitor.subTask("Parsing Configuration");
View Full Code Here

     *
     * @see org.eclipse.core.resources.IWorkspaceRunnable#run(org.eclipse.core.runtime.IProgressMonitor)
     */
    public void run(IProgressMonitor monitor) throws CoreException {
        SubMonitor subMonitor = SubMonitor.convert(monitor, 1000);
        subMonitor.beginTask("Generating MyBatis/iBATIS Artifacts:", 1000);
       
        setClassLoader();
       
        try {
            subMonitor.subTask("Parsing Configuration");
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.