Package org.eclipse.core.runtime

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


            ConfigurationParser cp = new ConfigurationParser(
                    warnings);
            Configuration config = cp.parseConfiguration(inputFile.getLocation().toFile());

            subMonitor.worked(50);

            MyBatisGenerator mybatisGenerator = new MyBatisGenerator(config, new EclipseShellCallback(), warnings);
            monitor.subTask("Generating Files from Database Tables");
            SubMonitor spm = subMonitor.newChild(950);
            mybatisGenerator.generate(new EclipseProgressCallback(spm));
View Full Code Here


            ConfigurationParser cp = new ConfigurationParser(
                    warnings);
            Configuration config = cp.parseConfiguration(inputFile.getLocation().toFile());

            subMonitor.worked(50);

            MyBatisGenerator mybatisGenerator = new MyBatisGenerator(config, new EclipseShellCallback(), warnings);
            monitor.subTask("Generating Files from Database Tables");
            SubMonitor spm = subMonitor.newChild(950);
            mybatisGenerator.generate(new EclipseProgressCallback(spm));
View Full Code Here

    metadata.setName(ModuleName.create(getModuleOwner(), project.getName().toLowerCase(), true));
    metadata.setVersion(Version.fromString("0.1.0"));

    if(ResourceUtil.getFile(project.getFullPath().append("manifests/init.pp")).exists()) { //$NON-NLS-1$
      File modulefile = project.getLocation().append(MODULEFILE_NAME).toFile(); //$NON-NLS-1$
      submon.worked(20);

      if(!modulefile.exists()) {
        ModuleUtils.saveAsModulefile(metadata, modulefile);
      }
      submon.worked(80);
View Full Code Here

      submon.worked(20);

      if(!modulefile.exists()) {
        ModuleUtils.saveAsModulefile(metadata, modulefile);
      }
      submon.worked(80);
    }
    else {
      forge.generate(project.getLocation().toFile(), metadata);
      submon.worked(70);
      // This will cause a build. The build will recreate the metadata.json file
View Full Code Here

      }
      submon.worked(80);
    }
    else {
      forge.generate(project.getLocation().toFile(), metadata);
      submon.worked(70);
      // This will cause a build. The build will recreate the metadata.json file
      project.refreshLocal(IResource.DEPTH_INFINITE, submon.newChild(30));
    }
    monitor.done();
  }
View Full Code Here

          if(moduleFile.renameTo(renamedModuleFile))
            moduleFileExists = false;
        }
      }

      submon.worked(60);

      if(submon.isCanceled())
        throw new OperationCanceledException();

      // This will cause a build. The build will recreate the metadata.json file
View Full Code Here

        : moduleDirectory.getAbsolutePath();
    if(nodeName == null)
      throw new IllegalArgumentException("Node name to compile the catalog for must be specified");
    args[offset++] = nodeName;
    args[offset++] = factorData.getAbsolutePath();
    ticker.worked(1);
    int result;
    try {
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      ByteArrayOutputStream err = new ByteArrayOutputStream();
      result = OsUtil.runProcess(null, out, err, args);
View Full Code Here

      readErrorStream(new ByteArrayInputStream(err.toByteArray()));
    }
    catch(IOException e) {
      result = -1;
    }
    ticker.worked(1);
    return result;
  }

  public List<CatalogDiagnostic> getDiagnostics() {
    return diagnostics;
View Full Code Here

                viewer.getInput(), Iterables.toArray(rootNodes, ReferenceSearchViewTreeNode.class));
              rootNodes = null;
            }
          }
        }
        progress.worked(1);
      }
      viewer.refresh();
      viewer.expandToLevel(1);
      return Status.OK_STATUS;
    }
View Full Code Here

              acceptor.accept(referenceDescription);
            }
          }

        }
        subMonitor.worked(1);
      }
    }

  }
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.