summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault (JBoss)2013-04-27 00:57:02 (EDT)
committerPascal Rapicault2013-04-27 00:57:02 (EDT)
commitb714eb834bfb24ae9ce6968bc1a55524bde55e4f (patch)
tree110f352023b955facf367f03ce6b64d414ec7067
parent5df3641d11d6bd5d03da3f9dca3290427e2f2985 (diff)
downloadrt.equinox.p2-b714eb834bfb24ae9ce6968bc1a55524bde55e4f.zip
rt.equinox.p2-b714eb834bfb24ae9ce6968bc1a55524bde55e4f.tar.gz
rt.equinox.p2-b714eb834bfb24ae9ce6968bc1a55524bde55e4f.tar.bz2
Show the correct title when remediation openeed from update wizard
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RemediationPage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RemediationPage.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RemediationPage.java
index b5192f5..b2cf19b 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RemediationPage.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RemediationPage.java
@@ -47,7 +47,7 @@ public class RemediationPage extends ResolutionStatusPage {
protected RemediationPage(ProvisioningUI ui, ProvisioningOperationWizard wizard, IUElementListRoot input, ProfileChangeOperation operation) {
super("RemediationPage", ui, wizard); //$NON-NLS-1$
- if (getWizard() instanceof UpdateWizard) {
+ if (wizard instanceof UpdateWizard) {
setTitle(ProvUIMessages.UpdateRemediationPage_Title);
setDescription(ProvUIMessages.UpdateRemediationPage_Description);
} else {
@@ -284,6 +284,7 @@ public class RemediationPage extends ResolutionStatusPage {
if (isContraintOK(ALLOWPARTIALINSTALL_INDEX, remedy.getConfig().allowPartialInstall) && isContraintOK(ALLOWDIFFERENTVERSION_INDEX, remedy.getConfig().allowDifferentVersion) && isContraintOK(ALLOWINSTALLEDUPDATE_INDEX, remedy.getConfig().allowInstalledUpdate) && isContraintOK(ALLOWINSTALLEDREMOVAL_INDEX, remedy.getConfig().allowInstalledRemoval)) {
if (remedy.getRequest() != null) {
currentRemedy = remedy;
+ ((ProvisioningOperationWizard) getWizard()).remediationOperation.setCurrentRemedy(currentRemedy);
break;
}
}