Package com.instantiations.installer.internal.core

Examples of com.instantiations.installer.internal.core.IProductVersion


          public boolean isCanceled() {
            return listener.isCanceled();
          }
          public void found(IProductInstallation installation) {
            if (isAppropriateEclipseInstallation(installation, options)) {
              IProductVersion version = installation.getProductVersion();
              // 3.1 is no longer supported so skip it
              if (!(version.getMajor() == 3 && version.getMinor() == 1)) {
                listener.found(installation);
                if (allEclipsePaths.length() > 0)
                  allEclipsePaths.append(',');
                allEclipsePaths.append(installation.getProductDir().getAbsolutePath());
                options.set(OPTION_ALL_ECLIPSES_PATH_LIST, allEclipsePaths.toString());
View Full Code Here


    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

    for (int i = 0; i < eclipsePathList.length; i++) {

      // For a given Eclipse installation, determine the code to be installed

      EclipseInstallation eclipse = new EclipseInstallation(new File(eclipsePathList[i]));
      IProductVersion eclipseTarget = adjustEclipseTarget(eclipse.getEclipseVersion());

      if (options.isVerbose()) {
        System.out.println("eclipse");
        System.out.println(" found eclipse version = " + eclipse.getEclipseVersion());
        System.out.println(" found product version = " + eclipse.getProductVersion());
        System.out.println(" mapped version = " + eclipseTarget.getMajor() + "." + eclipseTarget.getMinor()
          + "." + eclipseTarget.getService());
        System.out.println("processing " + eclipsePathList[i]);
        System.out.println("  installDir = " + installDir);
        System.out.println("  eclipse found version = ");
        System.out.println("  targetDir = E-" + (eclipseTarget.getMajor() + "." + eclipseTarget.getMinor()));
        System.out.println("  selfpath = " + selfPath);
        System.out.println("  image = " + image);
      }

      for (int j = 0; j < subProducts.length; j++) {
        SubProduct each = subProducts[j];
        if (options.isVerbose()) {
          System.out.println("processing " + each);
          System.out.println("  each.instdir = " + each.getInstallDirName());
        }

        // Check to see if subproduct can be linked to this eclipse installation

        // Allow each subproduct to determine whether they can link
        // to this eclipse installation and what version should be linked
        IProductVersion eachEclipseTarget = each.adjustEclipseTarget(image, eclipse, eclipseTarget, options);

        if (eachEclipseTarget == null) {
          if (options.isVerbose())
            System.out.println("  cannot link " + each + " to " + eclipsePathList[i]);
          continue;
        }

        if (options.isVerbose()) {
          System.out.println("can link to " + eclipse.getProductDir().getAbsolutePath());
        }

        String eachEclipseTargetString = eachEclipseTarget.getMajor() + "." + eachEclipseTarget.getMinor();

        String relInstallPath = each.getInstallDirName() + File.separator + "E-" + eachEclipseTargetString;
        File installSubDir = new File(installDir, relInstallPath);

        // Install the sub product if not already installed
View Full Code Here

  public PDESubProduct() {
    super("PDE", "${product_version}", "${product_version}.${build_num}", "${product_id}");
  }

  public boolean canLinkTo(EclipseInstallation eclipse, InstallOptions options) {
    IProductVersion eclipseVersion = eclipse.getEclipseVersion();

    // If this is Eclipse 3.3 or 3.4 and does not have PDE (e.g. Java distro)
    // then install and link our own PDE plugins
   
    if (eclipseVersion.getMajor() == 3) {
      if (eclipseVersion.getMinor() == 3 || eclipseVersion.getMinor() == 4) {
        boolean pdePluginsFound = EclipseInstallUtils.containsPDEPlugins(eclipse, options);
        if (options.isVerbose())
          System.out.println("found PDE plugins (" + pdePluginsFound + ")");
        return !pdePluginsFound;
      }
View Full Code Here

    super("GEF", "${product_version}", "${product_version}.${build_num}", "${product_id}");
  }

  public boolean canLinkTo(EclipseInstallation eclipse, InstallOptions options) {
   
    IProductVersion v = eclipse.getEclipseVersion();
    if (v.getMajor() != 3 || v.getMinor() < 2 ) {
      return false;
    }
    boolean gefPluginsFound = EclipseInstallUtils.containsGEFPlugins(eclipse, options);
    if (options.isVerbose()) {
      System.out.println("found GEF plugins (" + gefPluginsFound + ")");
View Full Code Here

TOP

Related Classes of com.instantiations.installer.internal.core.IProductVersion

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.