summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2013-01-22 13:49:23 (EST)
committerPascal Rapicault2013-01-22 13:49:23 (EST)
commit4fb3429ed3fd673d5daf7ca1ce9bf1184a0afcb3 (patch)
tree81c2bd8c502bdd5fc34b8f5eac51fbadc43b31bc
parenta34eac29e330a41991d003e2dcd2d8b264d77145 (diff)
downloadrt.equinox.p2-4fb3429ed3fd673d5daf7ca1ce9bf1184a0afcb3.zip
rt.equinox.p2-4fb3429ed3fd673d5daf7ca1ce9bf1184a0afcb3.tar.gz
rt.equinox.p2-4fb3429ed3fd673d5daf7ca1ce9bf1184a0afcb3.tar.bz2
Only show migration dialog once
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdateScheduler.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdateScheduler.java b/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdateScheduler.java
index 10e7b46..4923ed9 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdateScheduler.java
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdateScheduler.java
@@ -94,6 +94,7 @@ public class AutomaticUpdateScheduler implements IStartup {
}
private boolean baseChanged() {
+ final String MIGRATION_DIALOG_SHOWN = "migrationDialogShown"; //$NON-NLS-1$
if (!("true".equals(System.getProperty("eclipse.ignoreUserConfiguration"))))
return false;
@@ -103,10 +104,18 @@ public class AutomaticUpdateScheduler implements IStartup {
if (!"NEW".equals(registry.getProfileStateProperties(profileId, currentProfile.getTimestamp()).get("NEW")))
return false;
+ //Have we already shown the migration dialog
+ if (AutomaticUpdatePlugin.getDefault().getPreferenceStore().getLong(MIGRATION_DIALOG_SHOWN) == currentProfile.getTimestamp())
+ return false;
+
+ //Remember that we are showing the migration dialog
+ AutomaticUpdatePlugin.getDefault().getPreferenceStore().setValue(MIGRATION_DIALOG_SHOWN, currentProfile.getTimestamp());
+ AutomaticUpdatePlugin.getDefault().savePreferences();
+
Display d = Display.getDefault();
d.asyncExec(new Runnable() {
public void run() {
- MessageDialog.openWarning(getWorkbenchWindowShell(), "Installation modified", "An upgrade of the eclipse installation you are using has been performed. The extensions you had installed have been disabled.");
+ MessageDialog.openWarning(getWorkbenchWindowShell(), "Installation modified", "An upgrade of the eclipse installation you are using has been performed. The plugins you had installed have been uninstalled.");
}
});
return true;