Package com.instantiations.installer.core.eclipse

Examples of com.instantiations.installer.core.eclipse.EclipseVersion


    final ScrollablePromptUserStep step = new ScrollablePromptUserStep(installer) {

      private EclipseInstallation[] newerEclipses;

      public boolean canExecute() {
        IProductVersion V34 = new EclipseVersion(3, 4, 0, null);
        List newer = new ArrayList();
        String[] eclipsePaths = options.getStrings(InstallOptions.OPTION_ECLIPSE_PATH_LIST);
        for (int i = 0; i < eclipsePaths.length; i++) {
          EclipseInstallation eclipse = new EclipseInstallation(new File(eclipsePaths[i]));
          if (eclipse.getEclipseVersion().compareTo(V34) >= 0)
View Full Code Here


   *         compatible with the specified Eclipse installation version
   */
  protected IProductVersion adjustEclipseTarget(IProductVersion version) {
    // TODO [author=Dan] issue a warning about unsupport installation
    if (version.getMajor() > 3 || version.getMinor() > 4) {
      return new EclipseVersion(3, 4, 0, null);
    }
    return new EclipseVersion(version.getMajor(), version.getMinor(), 0, null);
  }
View Full Code Here

      return eclipseTarget;

    // TODO [author=Dan] For now, link > 3.4 code into 3.4 Eclipse installations
    // until we successfully compile all products against > 3.5 and include that code in the installer
    if (eclipseTarget.getMajor() > || (eclipseTarget.getMajor() == 3 && eclipseTarget.getMinor() > 4)) {
      EclipseVersion adjustedEclipseTarget = new EclipseVersion(3, 4, 0, null);
      if (getEntries(image, adjustedEclipseTarget).length > 0) {
        if (options.isVerbose())
          System.out.println("  adjusting " + this + " targetDir from E-" + eclipseTarget.getMajor() + "."
            + eclipseTarget.getMinor() + " to E-" + adjustedEclipseTarget.getMajor() + "."
            + adjustedEclipseTarget.getMinor());
        return adjustedEclipseTarget;
      }
    }
   
    // Nothing to be installed
View Full Code Here

TOP

Related Classes of com.instantiations.installer.core.eclipse.EclipseVersion

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.