Package org.eclipse.core.runtime

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


            lastCaps);

        LinkedList<IRequirementModelElement> reqs = new LinkedList<IRequirementModelElement>();
        LinkedList<ICapabilityModelElement> caps = new LinkedList<ICapabilityModelElement>();

        checkChanges(progress.newChild(100), reqs, caps);

        boolean reqsChanged;
        boolean capsChanged;

        synchronized (this)
View Full Code Here


            capsChanged = isCapabilitiesChanged(caps);
        }

        if (reqsChanged)
        {
            processRequirementsChanges(progress.newChild(600));
            SigilCore.rebuild(this, progress.newChild(50));
        }

        progress.setWorkRemaining(250);
View Full Code Here

        }

        if (reqsChanged)
        {
            processRequirementsChanges(progress.newChild(600));
            SigilCore.rebuild(this, progress.newChild(50));
        }

        progress.setWorkRemaining(250);

        if (capsChanged)
View Full Code Here

        progress.setWorkRemaining(250);

        if (capsChanged)
        {
            changes.addAll(caps);
            SigilCore.rebuildBundleDependencies(this, changes, progress.newChild(250));
        }
    }

    public void flushDependencyState()
    {
View Full Code Here

            | ResolutionConfig.IGNORE_ERRORS);

        try
        {
            IResolution resolution = manager.getBundleResolver().resolve(this, config,
                new ResolutionMonitorAdapter(progress.newChild(20)));

            markProblems(resolution);

            // pull remote bundles from repositories to be added to classpath
            if (!resolution.isSynchronized())
View Full Code Here

            markProblems(resolution);

            // pull remote bundles from repositories to be added to classpath
            if (!resolution.isSynchronized())
            {
                resolution.synchronize(new ProgressAdapter(progress.newChild(80)));
            }
        }
        catch (ResolutionException e)
        {
            throw SigilCore.newCoreException("Failed to resolve dependencies", e);
View Full Code Here

                   
                    List<ISigilProjectModel> projects = SigilCore.getRoot().getProjects();
                    SubMonitor sub = SubMonitor.convert(monitor, projects.size() * 10);
                    for (ISigilProjectModel p : projects)
                    {
                        p.resetClasspath(sub.newChild(10), false);
                    }
                }
            }
        };

View Full Code Here

    Diagnostic diagnostic = null;
    final String path = selectedElement.getLocation().toFile().getAbsolutePath();
    URI targetplatformFileURI = URI.createFileURI(path);

    try {
      diagnostic = converter.generateTargetDefinitionFile(targetplatformFileURI, subMonitor.newChild(95));
    } catch (OperationCanceledException cancel) {
      ret = new Status(
          IStatus.CANCEL,
          TargetPlatformActivator.FR_OBEO_RELENG_TARGETPLATFORM_TARGETPLATFORM,
          cancel.getMessage(), cancel);
View Full Code Here

          e.getMessage(), e);
    }
    IContainer container = selectedElement.getParent();
    if (container != null) {
      try {
        container.refreshLocal(IResource.DEPTH_ONE, subMonitor.newChild(5));
      } catch (CoreException e) {
        return new Status(IStatus.ERROR, TargetPlatformActivator
            .getInstance().getBundle().getSymbolicName(),
            e.getMessage(), e);
      }
View Full Code Here

  }

  public void setTargetPlatform(URI targetFileURIToSet, IProgressMonitor monitor) throws CoreException {
    if (service.isPresent()) {
      SubMonitor subMonitor = SubMonitor.convert(monitor, 100);
      ITargetHandle[] targets = service.get().getTargets(subMonitor.newChild(20));

      boolean hasBeenSet = false;
      for (int i = 0; i < targets.length && !hasBeenSet; i++) {
        if (targets[i] instanceof WorkspaceFileTargetHandle) {
          WorkspaceFileTargetHandle fileHandle = (WorkspaceFileTargetHandle) targets[i];
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.