Package org.eclipse.core.runtime

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


                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

        status.add(AbstractIAMLJob.errorStatus("When migrating " + model + ": " + e.getMessage(), e));
        // and continue
      }
    }
   
    m2.done();
    monitor.done();
   
    // any errors?
    if (status.getChildren().length != 0) {
      return status;
View Full Code Here

          existingIDs.add(newID);
        }
        sub.worked(1);
      }
    }
    sub.done();
   
    // now save
    monitor.subTask("Saving model");
    model.eResource().save(ModelLoader.getSaveOptions());
   
View Full Code Here

      if (saveInferred.exists()) {
        saveInferred.setContents(new FileInputStream(tempJavaFile), true, false, sub);        
      } else {
        saveInferred.create(new FileInputStream(tempJavaFile), true, sub);       
      }
      sub.done();
    } else {
      monitor.worked(10);
    }
   
    if (monitor.isCanceled()) {
View Full Code Here

                        VirtualMachine vm= runnable.getVirtualMachine();
                        if (vm != null) {
                            DroolsDebugModel.newDebugTarget(launch, vm, renderDebugTarget(config.getClassToLaunch(), port), process, true, false, config.isResumeOnStartup());
                            subMonitor.worked(1);
                            subMonitor.done();
                        }
                        return;
                    } catch (InterruptedIOException e) {
                        checkErrorMessage(process);
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.