Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2008-04-23 17:42:58 -0400
committerSusan Franklin2008-04-23 17:42:58 -0400
commitabb22103aba817d1a0916ed758ecf38baac7083e (patch)
treeac86f2d8a7780f237161974848679529e974c5e7 /bundles
parent7cefbf6de7cba1fc17e21356216c855232b851d7 (diff)
downloadrt.equinox.p2-abb22103aba817d1a0916ed758ecf38baac7083e.tar.gz
rt.equinox.p2-abb22103aba817d1a0916ed758ecf38baac7083e.tar.xz
rt.equinox.p2-abb22103aba817d1a0916ed758ecf38baac7083e.zip
Bug 228481 - [ui] ProfileModificationWizards should report and allow continuation of INFO and WARNING plans
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ProfileModificationWizardPage.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ProfileModificationWizardPage.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ProfileModificationWizardPage.java
index c2290cdce..d51913bc2 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ProfileModificationWizardPage.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ProfileModificationWizardPage.java
@@ -208,7 +208,7 @@ public abstract class ProfileModificationWizardPage extends WizardPage {
final Object[] selections = getCheckedElements();
if (selections.length == 0) {
currentPlan = null;
- currentStatus = new Status(IStatus.WARNING, ProvUIActivator.PLUGIN_ID, ProvUIMessages.ProfileModificationWizardPage_NothingSelected);
+ currentStatus = new Status(IStatus.ERROR, ProvUIActivator.PLUGIN_ID, ProvUIMessages.ProfileModificationWizardPage_NothingSelected);
} else
getContainer().run(true, true, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) {
@@ -256,18 +256,18 @@ public abstract class ProfileModificationWizardPage extends WizardPage {
void updateStatus() {
int messageType = IMessageProvider.NONE;
+ boolean pageComplete = true;
if (currentStatus != null && !currentStatus.isOK()) {
messageType = IMessageProvider.INFORMATION;
int severity = currentStatus.getSeverity();
- if (severity == IStatus.ERROR)
+ if (severity == IStatus.ERROR) {
messageType = IMessageProvider.ERROR;
- else if (severity == IStatus.WARNING)
+ pageComplete = false;
+ } else if (severity == IStatus.WARNING)
messageType = IMessageProvider.WARNING;
- setPageComplete(false);
ProvUI.reportStatus(currentStatus, StatusManager.LOG);
- } else {
- setPageComplete(true);
}
+ setPageComplete(pageComplete);
setMessage(getMessageText(), messageType);
detailsArea.setText(getDetailText());
}

Back to the top