diff options
| author | Gorkem Ercan | 2014-01-31 17:06:13 +0000 |
|---|---|---|
| committer | Gorkem Ercan | 2014-02-04 15:59:01 +0000 |
| commit | 770e8ea151a0ff93b83e975b7e6294484955941f (patch) | |
| tree | a63752ef430d020d18b102b3f22a99facfbb25c0 | |
| parent | c1cd356b6a072e10770c8062579b7c3a068b183b (diff) | |
| download | eclipse.platform.ui-770e8ea151a0ff93b83e975b7e6294484955941f.tar.gz eclipse.platform.ui-770e8ea151a0ff93b83e975b7e6294484955941f.tar.xz eclipse.platform.ui-770e8ea151a0ff93b83e975b7e6294484955941f.zip | |
Bug 427142 - StatusManager may change the severity
Carry the severity of the Status contained on the CoreException to the
newly created wrapper Status. Exception severity is no longer upgraded
or downgraded to IStatus.Warning
Change-Id: I71c6546ac3e7d29045f0e9c3fde19b1d27ca68c7
Signed-off-by: gorkem.ercan@gmail.com
| -rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/statushandlers/StatusManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/statushandlers/StatusManager.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/statushandlers/StatusManager.java index f12af24a709..510f6652212 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/statushandlers/StatusManager.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/statushandlers/StatusManager.java @@ -7,13 +7,13 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Gorkem Ercan (Red Hat) - Fix for Bug 427142 *******************************************************************************/ package org.eclipse.ui.statushandlers; import java.util.ArrayList; import java.util.List; - import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.ILogListener; import org.eclipse.core.runtime.IStatus; @@ -258,7 +258,9 @@ public class StatusManager { * */ public void handle(CoreException coreException,String pluginId) { - handle(new Status(IStatus.WARNING, pluginId, coreException + IStatus exceptionStatus = coreException.getStatus(); + handle(new Status(exceptionStatus.getSeverity(), pluginId, + coreException .getLocalizedMessage(), coreException)); } |
