Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-04-25 11:50:25 -0400
committerUwe Stieber2012-04-25 11:50:25 -0400
commitfa064aa92068bda5d57f50ef2ef23cdaf9001f6b (patch)
tree8288da6202a67d4686357cb554726de59fd8a5f6 /target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler
parent1e31f3baac0df6efb685fb849575f5156dc0a85f (diff)
downloadorg.eclipse.tcf-fa064aa92068bda5d57f50ef2ef23cdaf9001f6b.tar.gz
org.eclipse.tcf-fa064aa92068bda5d57f50ef2ef23cdaf9001f6b.tar.xz
org.eclipse.tcf-fa064aa92068bda5d57f50ef2ef23cdaf9001f6b.zip
Target Explorer: Improved status handler testing
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java19
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java1
2 files changed, 1 insertions, 19 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java
index 8d80604ab..9ecc6c6c4 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java
@@ -154,23 +154,4 @@ public class StatusHandlerBindingExtensionPointManager extends AbstractExtension
return contributions.toArray(new StatusHandlerBinding[contributions.size()]);
}
-
- /**
- * Returns the status handler binding identified by its unique id. If no status
- * handler binding with the specified id is registered, <code>null</code> is returned.
- *
- * @param id The unique id of the status handler binding or <code>null</code>
- *
- * @return The status handler binding instance or <code>null</code>.
- */
- public StatusHandlerBinding getBinding(String id) {
- StatusHandlerBinding contribution = null;
- if (getExtensions().containsKey(id)) {
- ExecutableExtensionProxy<StatusHandlerBinding> proxy = getExtensions().get(id);
- // Get the extension instance
- contribution = proxy.getInstance();
- }
-
- return contribution;
- }
}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java
index c9f03416e..9bd1acd49 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java
@@ -72,5 +72,6 @@ public class QuestionStatus extends Status {
*/
@Override
protected final void setSeverity(int severity) {
+ if (IStatus.OK == severity) super.setSeverity(severity);
}
}

Back to the top