Examples of PromptUserStep


Examples of com.instantiations.installer.core.steps.PromptUserStep

   * describing what is to be installed.
   *
   * @return the installation step created
   */
  protected PromptUserStep welcomeStep() {
    PromptUserStep step = new PromptUserStep(installer);
    initStep(step, "Welcome");
    step.setText(options.getString("WelcomeText"));
    installer.add(step);
    return step;
  }
View Full Code Here

Examples of com.instantiations.installer.core.steps.PromptUserStep

   * installation options.
   *
   * @return the installation step created
   */
  protected PromptUserStep verifyInstallStep() {
    final PromptUserStep step = new PromptUserStep(installer) {
      public void aboutToStep() {
        setText(createInstallDescription());
      }
    };
    initStep(step, "VerifyInstall");
View Full Code Here

Examples of com.instantiations.installer.core.steps.PromptUserStep

   * Create a step indicating to the user that installation is complete
   *
   * @return the installation step created
   */
  protected PromptUserStep installCompleteStep() {
    final PromptUserStep step = new PromptUserStep(installer) {
      public boolean canBack() {
        return false;
      }
    };
    initStep(step, "InstallComplete");
    step.setText(options.getString("InstallCompleteText"));
    installer.add(step);
    return step;
  }
View Full Code Here

Examples of com.instantiations.installer.core.steps.PromptUserStep

   * button to modify uninstall options.
   *
   * @return the installation step created
   */
  protected PromptUserStep verifyUninstallStep() {
    final PromptUserStep step = new PromptUserStep(installer) {
      public void aboutToStep() {

        // Get the directory where the INSTALLER_JAR is.
        String selfPath = System.getProperty(Context.INSTALLER_JAR_PROPERTY);

        // Assume that it is the same as the installation directory.
        File self = new File(selfPath);
        options.set(InstallOptions.OPTION_INSTALL_DIR, self.getParent());

        // Retrieve the linked Eclipse installations from the LOG file
        File logFile = new File(self.getParentFile(), CreateUninstallerOperation.INSTALL_LOG);
        EclipseInstallation[] linkedInstallations = EclipseInstallation.findLinked(logFile);

        // The directory from which the product will be uninstalled
        File installDir = new File(options.getString(InstallOptions.OPTION_INSTALL_DIR));

        // Get subproducts to be uninstalled
        SubProduct[] subProducts = getSubProductsToInstall();

        setText(createUninstallDescription(installDir, subProducts, linkedInstallations));
      }
    };
    step.setTitle("Verify uninstall");
    step
      .setDescription("This wizard will uninstall " + options.getString(InstallOptions.OPTION_PRODUCT_NAME) + ".");
    installer.add(step);
    return step;
  }
View Full Code Here

Examples of com.instantiations.installer.core.steps.PromptUserStep

   * will be once the OS reboots.
   *
   * @return the installation step created
   */
  protected PromptUserStep uninstallCompletStep() {
    final PromptUserStep step = new PromptUserStep(installer) {
      public void aboutToStep() {
        String[] filesRemovedOnReboot = options.getStrings(UninstallOperation.OPTION_FILES_REMOVED_ON_REBOOT);
        StringBuffer buf = new StringBuffer(200 + filesRemovedOnReboot.length * 40);
        if (filesRemovedOnReboot.length > 0) {
          buf.append("The following files will be removed when you reboot:\n");
          for (int i = 0; i < filesRemovedOnReboot.length; i++) {
            buf.append("\t");
            buf.append(filesRemovedOnReboot[i]);
            buf.append("\n");
          }
          buf.append("\n");
        }
        buf.append("Click Finish to close this wizard.");
        setText(buf.toString());
      }
    };
    step.setDescription("Uninstall complete.");
    installer.add(step);
    return step;
  }
View Full Code Here

Examples of com.instantiations.installer.core.steps.PromptUserStep

   * Create a step to inform the user that the product has already been uninstalled
   *
   * @return the created step (not <code>null</code>)
   */
  protected PromptUserStep alreadyUninstalledStep() {
    final PromptUserStep step = new PromptUserStep(installer);
    step.setTitle("Already uninstalled");

    StringWriter stringWriter = new StringWriter();
    PrintWriter writer = new PrintWriter(stringWriter);
    writer.print(options.getString(InstallOptions.OPTION_PRODUCT_NAME));
    writer.print(" has already been uninstalled.");

    step.setDescription(stringWriter.toString());

    writer.println();
    writer.print("The remaining files should be removed when the machine is rebooted.");

    step.setText(stringWriter.toString());
    installer.add(step);
    return step;
  }
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.