Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-08 13:58:45 -0400
committerMatthew Piggott2011-04-08 13:58:45 -0400
commitcace1738a2f496eb067cd00df210e70f1eb95f48 (patch)
tree05496e31f6e745f1782919781d826fa57c00bf5e /org.eclipse.m2e.discovery/src
parente3a771b705ec432bd3f54a85b5d1662d895fe101 (diff)
downloadm2e-core-cace1738a2f496eb067cd00df210e70f1eb95f48.tar.gz
m2e-core-cace1738a2f496eb067cd00df210e70f1eb95f48.tar.xz
m2e-core-cace1738a2f496eb067cd00df210e70f1eb95f48.zip
Amend previous commit
Diffstat (limited to 'org.eclipse.m2e.discovery/src')
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java
index 596b4f27..e660b724 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java
@@ -20,6 +20,7 @@ import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.m2e.internal.discovery.MavenDiscoveryIcons;
import org.eclipse.m2e.internal.discovery.Messages;
+import org.eclipse.ui.statushandlers.StatusManager;
@SuppressWarnings("restriction")
@@ -44,6 +45,9 @@ public class MavenDiscoveryWizard extends DiscoveryWizard {
IWizardPage page = getContainer().getCurrentPage();
if (page instanceof WizardPage) {
((WizardPage) page).setMessage(e.getMessage(), IMessageProvider.ERROR);
+ } else {
+ // This should never happen, but just in case.
+ StatusManager.getManager().handle(e.getStatus(), StatusManager.SHOW | StatusManager.LOG);
}
return false;
}

Back to the top