Examples of IBootInstall


Examples of org.springframework.ide.eclipse.boot.core.cli.install.IBootInstall

      if (urlText.getText() == null || urlText.getText().equals("")) {
        setError("Select a Boot home directory or zip file");
        return;
      }
      else if (validateHome) {
        IBootInstall install = installFactory.newInstall(urlText.getText(), nameText.getText());
        IStatus status = install.validate();
        if (!status.isOK()) {
          setError(status.getMessage());
        }
        versionText.setText(install.getVersion());
 
      }
      if (nameText.getText() == null || nameText.getText().trim().equals("")) {
        setError("A name is required");
      }
View Full Code Here

Examples of org.springframework.ide.eclipse.boot.core.cli.install.IBootInstall

    if (encoded!=null) {
      String[] encodedInstalls = ArrayEncoder.decode(encoded);
      for (String encodedInstall : encodedInstalls) {
        try {
          String[] parts = ArrayEncoder.decode(encodedInstall);
          IBootInstall install = newInstall(parts[0], parts[1]);
          installs.add(install);
          if (defaultName.equals(install.getName())) {
            setDefaultInstall(install);
          }
        } catch (Exception e) {
          BootActivator.log(e);
        }
View Full Code Here

Examples of org.springframework.ide.eclipse.boot.core.cli.install.IBootInstall

      encodedInstalls[i] = encodeInstall(local.get(i));
    }
    String encoded = ArrayEncoder.encode(encodedInstalls);
    IEclipsePreferences prefs = getPrefs();
    prefs.put(BOOT_INSTALLS, encoded);
    IBootInstall di = null;
    try {
      di = getDefaultInstall();
    } catch (Exception e) {
      BootActivator.log(e);
    }
    if (di==null) {
      prefs.remove(DEFAULT_BOOT_INSTALL);
    } else {
      prefs.put(DEFAULT_BOOT_INSTALL, di.getName());
    }
    try {
      prefs.flush();
    } catch (BackingStoreException e) {
      BootActivator.log(e);
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.