Package org.eclipse.core.runtime

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


    monitor.subTask(SSEUIMessages.ContentAssist_sorting_contexts);
    List filtered= filterAndSortContextInformation(proposals, monitor);
    fNumberOfComputedResults= filtered.size();

    IContextInformation[] result= (IContextInformation[]) filtered.toArray(new IContextInformation[filtered.size()]);
    monitor.done();
    return result;
  }

  /**
   * <p>Default implementation is to return <code>null</code></p>
View Full Code Here


                IType superType= (IType)iter.next();
                IType[] superTypes= getAllSuperTypes(superType, new SubProgressMonitor(subPm, 1));
                types.addAll(Arrays.asList(superTypes));
            }
            types.add(type.getJavaProject().findType("java.lang.Object"));//$NON-NLS-1$
            subPm.done();
            return (IType[]) types.toArray(new IType[types.size()]);
        } finally {
            pm.done();
        }  
    }
View Full Code Here

          new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() },
                    searchScope,
          searchRequestor,
          monitor
          );
            monitor.done();

            return searchRequestor.getMethodUnitPairs();
        } catch (CoreException e) {
            JavaPlugin.log(e);
View Full Code Here

     
      IProcess process= newProcess(launch, p, renderProcessLabel(cmdLine), getDefaultProcessMap());
      process.setAttribute(IProcess.ATTR_CMDLINE, renderCommandLine(cmdLine));
    }
    subMonitor.worked(1);
    subMonitor.done();
  }

  /**
   * Write the launch invocation string to the platform log.
   *
 
View Full Code Here

        srcmonitor.beginTask("", srcs.length); //$NON-NLS-1$
        for (int j = 0; j < srcs.length; j++) {
          srcs[j].extract(new SubProgressMonitor(srcmonitor, 1));
          sourcepath.add(srcs[j].getPath().toOSString());
        }
        srcmonitor.done();
      } else {
        monitor.worked(1);
      }
    }
    for (int i = 0; i < coveragefiles.length; i++) {
View Full Code Here

          srcmonitor.beginTask("", srcs.length); //$NON-NLS-1$
          for (int j = 0; j < srcs.length; j++) {
            srcs[j].extract(new SubProgressMonitor(srcmonitor, 1));
            sourcepath.add(srcs[j].getPath().toOSString());
          }
          srcmonitor.done();
        } else {
          monitor.worked(1);
        }
      } else {
        monitor.worked(1);
View Full Code Here

              new String[0], requestor, new SubProgressMonitor(
                  subMonitor, 1));
        }

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

            monitor.setTaskName("Adding standart Java System Library to Classpath");
            addSystemLibraries();
            monitor.worked(1);

        } finally {
            monitor.done();
        }

    }

    /**
 
View Full Code Here

            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();
        }
    }

    private void createFolderStructure(IFolder folder) throws CoreException {
        if (folder.getParent().exists()) {
View Full Code Here

            IPackageFragmentRoot javaRoot = fJavaProject.getPackageFragmentRoot(sourceFolder);
            javaRoot.createPackageFragment(packageName, false, null);

            monitor.worked(1);
        } finally {
            monitor.done();
        }
    }

    /**
     * Adds a jar.
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.