Examples of newChild()


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

        progressMonitor.beginLongOperation(false);
        subMonitor = SubMonitor.convert(progressMonitor, Messages.DBManager_RSSOWL_MIGRATION, 100);

        //TODO Have a better way to allocate the ticks to the child. We need
        //to be able to do it dynamically based on whether a reindex is required or not.
        migrationResult = migrate(workspaceVersion, getCurrentFormatVersion(), subMonitor.newChild(70));
      }

      /* Perform Defrag if necessary */
      if (!defragmentIfNecessary(progressMonitor, subMonitor)) {

View Full Code Here

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

            /* Create Marker that Reindexing is Performed */
            if (!marker.exists())
              safeCreate(marker);

            /* Reindex Search Index */
            modelSearch.reindexAll(subMonitor != null ? subMonitor.newChild(20) : new NullProgressMonitor());
          } finally {
            safeDelete(marker);
          }

          if (progressMonitor.isCanceled())
View Full Code Here

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

                registerLaunchPropertiesRegenerator(model, launch);
        } catch (Exception e) {
            throw new CoreException(new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, "Error obtaining OSGi project launcher.", e));
        }

        super.launch(configuration, mode, launch, progress.newChild(1, SubMonitor.SUPPRESS_NONE));
    }

    private void configureLauncher(ILaunchConfiguration configuration) throws CoreException {
        boolean clean = configuration.getAttribute(LaunchConstants.ATTR_CLEAN, LaunchConstants.DEFAULT_CLEAN);
View Full Code Here

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

        is = replacer.getStream();
      }

      if (dst.exists()) {
        dst.setContents(is, false, true,
            progress.newChild(2, SubMonitor.SUPPRESS_NONE));
      } else {
        FileUtils.recurseCreate(dst.getParent(),
            progress.newChild(1, SubMonitor.SUPPRESS_NONE));
        dst.create(is, false,
            progress.newChild(1, SubMonitor.SUPPRESS_NONE));
View Full Code Here

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

      if (dst.exists()) {
        dst.setContents(is, false, true,
            progress.newChild(2, SubMonitor.SUPPRESS_NONE));
      } else {
        FileUtils.recurseCreate(dst.getParent(),
            progress.newChild(1, SubMonitor.SUPPRESS_NONE));
        dst.create(is, false,
            progress.newChild(1, SubMonitor.SUPPRESS_NONE));
      }

      if (replacer != null) {
View Full Code Here

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

            progress.newChild(2, SubMonitor.SUPPRESS_NONE));
      } else {
        FileUtils.recurseCreate(dst.getParent(),
            progress.newChild(1, SubMonitor.SUPPRESS_NONE));
        dst.create(is, false,
            progress.newChild(1, SubMonitor.SUPPRESS_NONE));
      }

      if (replacer != null) {
        try {
          replacer.join();
View Full Code Here

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

                    if (locations != null && locations.length > 0) {
                        IFile pkgInfoFile = locations[0].getFile(new Path(PACKAGEINFO));

                        try {
                            ByteArrayInputStream input = new ByteArrayInputStream("version 1.0".getBytes("UTF-8"));
                            pkgInfoFile.create(input, false, progress.newChild(1, 0));
                        } catch (CoreException e) {
                            status.add(new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, "Error creating file " + pkgInfoFile.getFullPath(), e));
                        } catch (UnsupportedEncodingException e) {
                            /* just ignore, should never happen */
                        }
View Full Code Here

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

        SubMonitor progress = SubMonitor.convert(monitor);

        switch (operation.getType()) {
        case Import :
            progress.setWorkRemaining(2);
            importCnf(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            rebuildWorkspace(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            break;
        case Open :
            progress.setWorkRemaining(2);
            openProject(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
View Full Code Here

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

        switch (operation.getType()) {
        case Import :
            progress.setWorkRemaining(2);
            importCnf(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            rebuildWorkspace(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            break;
        case Open :
            progress.setWorkRemaining(2);
            openProject(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            rebuildWorkspace(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
View Full Code Here

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

            importCnf(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            rebuildWorkspace(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            break;
        case Open :
            progress.setWorkRemaining(2);
            openProject(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            rebuildWorkspace(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
            break;
        case Create :
            progress.setWorkRemaining(3);
            createOrReplaceCnf(progress.newChild(1, SubMonitor.SUPPRESS_NONE));
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.