Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2010-12-21 21:18:08 +0000
committerSusan Franklin2010-12-21 21:18:08 +0000
commit7da7658655b0530723b070f78ca0e50897e771ae (patch)
treec3c33697d2263b407c7120593c127357c05c9088 /bundles/org.eclipse.equinox.p2.ui.sdk
parentc0116b0290afd51a20299f27a2831bf5c0e82023 (diff)
downloadrt.equinox.p2-7da7658655b0530723b070f78ca0e50897e771ae.tar.gz
rt.equinox.p2-7da7658655b0530723b070f78ca0e50897e771ae.tar.xz
rt.equinox.p2-7da7658655b0530723b070f78ca0e50897e771ae.zip
Bug 313242 - [ui] Hard to find "uninstall" UI
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.sdk')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties1
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java13
3 files changed, 14 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java
index 022c13c2c..01d537adf 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java
@@ -35,6 +35,7 @@ public class ProvSDKMessages extends NLS {
public static String ProvisioningPreferencePage_NeverOpenWizard;
public static String ProvisioningPreferencePage_OpenWizardIfInvalid;
public static String ProvisioningPreferencePage_PromptToOpenWizard;
+ public static String ProvisioningPreferencePage_UninstallUpdateLink;
public static String ProvSDKUIActivator_ErrorSavingPrefs;
public static String ProvSDKUIActivator_NoSelfProfile;
public static String ProvSDKUIActivator_OpenWizardAnyway;
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties
index 03d95281c..19395ce46 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties
@@ -24,6 +24,7 @@ ProvisioningPreferencePage_ShowAllVersions=Show all &versions of available softw
ProvisioningPreferencePage_NeverOpenWizard=&Report the problems and do not open the wizard
ProvisioningPreferencePage_OpenWizardIfInvalid=When software selected for an install wizard may not be compatible
ProvisioningPreferencePage_PromptToOpenWizard=As&k me what to do when it happens
+ProvisioningPreferencePage_UninstallUpdateLink=<a>Uninstall or update</a> software that is already installed
SDKPolicy_PrefPageName=Available Software Sites
UpdateHandler_NoSitesMessage=There are no update sites to search. Do you wish to open the "Available Software Sites" preferences?
UpdateHandler_NoSitesTitle=No Updates Found
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java
index 0df8aa82d..7a49f117f 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2009 IBM Corporation and others.
+ * Copyright (c) 2007, 2010 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
@@ -11,6 +11,7 @@
package org.eclipse.equinox.internal.p2.ui.sdk.prefs;
import org.eclipse.core.runtime.preferences.DefaultScope;
+import org.eclipse.equinox.internal.p2.ui.ProvUI;
import org.eclipse.equinox.internal.p2.ui.sdk.*;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.MessageDialogWithToggle;
@@ -91,6 +92,16 @@ public class ProvisioningPreferencePage extends PreferencePage implements IWorkb
gd.horizontalSpan = 3;
promptOnFailedPlan.setLayoutData(gd);
+ //Link to installed software page
+ //See https://bugs.eclipse.org/bugs/show_bug.cgi?id=313242
+ Link link = new Link(container, SWT.PUSH);
+ link.setText(ProvSDKMessages.ProvisioningPreferencePage_UninstallUpdateLink);
+ link.addListener(SWT.Selection, new Listener() {
+ public void handleEvent(Event event) {
+ ProvUI.openInstallationDialog(event);
+ }
+ });
+
initialize();
Dialog.applyDialogFont(container);

Back to the top