X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.project%2Fsrc%2Forg%2Feclipse%2Fequinox%2Finternal%2Fprovisional%2Fp2%2Finstaller%2FInstallAdvisor.java;fp=bundles%2Forg.simantics.project%2Fsrc%2Forg%2Feclipse%2Fequinox%2Finternal%2Fprovisional%2Fp2%2Finstaller%2FInstallAdvisor.java;h=b6b2960917914f5b10e2005a4c6854034dbdba07;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=27be9e08e340813166b850d42d2b7713fa2621b4;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.project/src/org/eclipse/equinox/internal/provisional/p2/installer/InstallAdvisor.java b/bundles/org.simantics.project/src/org/eclipse/equinox/internal/provisional/p2/installer/InstallAdvisor.java
index 27be9e08e..b6b296091 100644
--- a/bundles/org.simantics.project/src/org/eclipse/equinox/internal/provisional/p2/installer/InstallAdvisor.java
+++ b/bundles/org.simantics.project/src/org/eclipse/equinox/internal/provisional/p2/installer/InstallAdvisor.java
@@ -1,71 +1,71 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.equinox.internal.provisional.p2.installer;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.OperationCanceledException;
-
-/**
- * The install advisor helps to make decisions during install, and is the conduit
- * for reporting progress and results back to an end user or log.
- */
-public abstract class InstallAdvisor {
- /**
- * Performs the actual install. The advisor is responsible for handling progress
- * monitoring and cancelation. The advisor may perform the install in
- * another thread, but must block the calling thread until the install
- * completes.
- *
- * @param operation The install operation to run
- * @return IStatus The result of the install operation. This is typically
- * just the return value of {@link IInstallOperation#install(IProgressMonitor)},
- * but the advisor may alter the result status if desired.
- */
- public abstract IStatus performInstall(IInstallOperation operation);
-
- /**
- * Allows the advisor to modify or fill in missing values in the install description.
- * @param description The initial install description
- * @return The install description to be used for the install.
- * @exception OperationCanceledException if the install should be canceled.
- */
- public abstract InstallDescription prepareInstallDescription(InstallDescription description);
-
- /**
- * Prompts for whether the installed application should be launched immediately.
- * This method is only called after a successful install.
- *
- * @param description The initial install description
- * @return true
if the product should be launched, and
- * false
otherwise.
- */
- public abstract boolean promptForLaunch(InstallDescription description);
-
- /**
- * Reports some result information to the context. The status may be
- * information, warning, or an error.
- */
- public abstract void setResult(IStatus status);
-
- /**
- * Initializes the install advisor. This method must be called before calling any
- * other methods on the advisor are called. Subsequent invocations of this
- * method are ignored.
- */
- public abstract void start();
-
- /**
- * Stops the install advisor. The advisor becomes invalid after it has been
- * stopped; a stopped advisor cannot be restarted.
- */
- public abstract void stop();
-}
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.equinox.internal.provisional.p2.installer;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.OperationCanceledException;
+
+/**
+ * The install advisor helps to make decisions during install, and is the conduit
+ * for reporting progress and results back to an end user or log.
+ */
+public abstract class InstallAdvisor {
+ /**
+ * Performs the actual install. The advisor is responsible for handling progress
+ * monitoring and cancelation. The advisor may perform the install in
+ * another thread, but must block the calling thread until the install
+ * completes.
+ *
+ * @param operation The install operation to run
+ * @return IStatus The result of the install operation. This is typically
+ * just the return value of {@link IInstallOperation#install(IProgressMonitor)},
+ * but the advisor may alter the result status if desired.
+ */
+ public abstract IStatus performInstall(IInstallOperation operation);
+
+ /**
+ * Allows the advisor to modify or fill in missing values in the install description.
+ * @param description The initial install description
+ * @return The install description to be used for the install.
+ * @exception OperationCanceledException if the install should be canceled.
+ */
+ public abstract InstallDescription prepareInstallDescription(InstallDescription description);
+
+ /**
+ * Prompts for whether the installed application should be launched immediately.
+ * This method is only called after a successful install.
+ *
+ * @param description The initial install description
+ * @return true
if the product should be launched, and
+ * false
otherwise.
+ */
+ public abstract boolean promptForLaunch(InstallDescription description);
+
+ /**
+ * Reports some result information to the context. The status may be
+ * information, warning, or an error.
+ */
+ public abstract void setResult(IStatus status);
+
+ /**
+ * Initializes the install advisor. This method must be called before calling any
+ * other methods on the advisor are called. Subsequent invocations of this
+ * method are ignored.
+ */
+ public abstract void start();
+
+ /**
+ * Stops the install advisor. The advisor becomes invalid after it has been
+ * stopped; a stopped advisor cannot be restarted.
+ */
+ public abstract void stop();
+}