aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGorkem Ercan2014-01-31 12:06:13 -0500
committerGorkem Ercan2014-02-04 10:59:01 -0500
commit770e8ea151a0ff93b83e975b7e6294484955941f (patch)
treea63752ef430d020d18b102b3f22a99facfbb25c0
parentc1cd356b6a072e10770c8062579b7c3a068b183b (diff)
downloadeclipse.platform.ui-770e8ea151a0ff93b83e975b7e6294484955941f.zip
eclipse.platform.ui-770e8ea151a0ff93b83e975b7e6294484955941f.tar.gz
eclipse.platform.ui-770e8ea151a0ff93b83e975b7e6294484955941f.tar.xz
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.java6
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 f12af24..510f665 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));
}