Package org.springframework.ide.eclipse.wizard.gettingstarted.content

Examples of org.springframework.ide.eclipse.wizard.gettingstarted.content.BuildType


    RadioGroup buildTypeGroup = getRadioGroups().getGroup("type");
    if (buildTypeGroup!=null) {
      buildTypeGroup.validator(new Validator() {
        @Override
        protected ValidationResult compute() {
          BuildType bt = getBuildType();
          if (!bt.getImportStrategy().isSupported()) {
            //This means some required STS component like m2e or gradle tooling is not installed
            return ValidationResult.error(bt.getNotInstalledMessage());
          }
          return ValidationResult.OK;
        }
      }.dependsOn(buildTypeGroup.getVariable()));
    }
View Full Code Here


  public BuildType getBuildType() {
    RadioGroup buildTypeRadios = getRadioGroups().getGroup("type");
    if (buildTypeRadios!=null) {
      RadioInfo selected = buildTypeRadios.getSelection().selection.getValue();
      if (selected!=null) {
        BuildType bt = KNOWN_TYPES.get(selected.getValue());
        if (bt!=null) {
          return bt;
        } else {
          //Uknown build type, import it as a general project which is better than nothing
          return BuildType.GENERAL;
View Full Code Here

   */
  public boolean performFinish(IProgressMonitor mon) throws InvocationTargetException, InterruptedException {
    //The import will be carried out with whatever the currently selected values are
    // in all the input fields / variables / widgets.
    GSContent g = guide.getValue();
    BuildType bt = buildType.getValue();
    Set<String> codesetNames = codesets.getValue();

    mon.beginTask("Import guide content", codesetNames.size()+1);
    try {
      for (String name : codesetNames) {
        CodeSet cs = g.getCodeSet(name);
        if (cs==null) {
          //Ignore 'invalid' codesets. This is a bit of a hack so that we can retain selected codeset names
          //  across guide selection changes. To do that we remember 'selected' cs names even if they
          //  aren't valid for the current guide. That way the checkbox state stays consistent
          //  when switching between guides (otherwise 'invalid' names would have to be cleared when switching to
          //  a guide).
          mon.worked(1);
        } else {
          IRunnableWithProgress oper = bt.getImportStrategy().createOperation(ImportUtils.importConfig(
              g,
              cs
          ));
          oper.run(new SubProgressMonitor(mon, 1));
        }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.wizard.gettingstarted.content.BuildType

Copyright © 2018 www.massapicom. 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.