Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-01-08 06:51:57 -0500
committerUwe Stieber2013-01-08 06:51:57 -0500
commitc6f15ccfda91d3fe33e92c3e9ef325dee4bd03c9 (patch)
treeeb8289bdb829b18d54ce4d5b120672b25de34a17 /target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler
parentce37d9f90ddb05349ec0ed4d79e47468ed5a0659 (diff)
downloadorg.eclipse.tcf-c6f15ccfda91d3fe33e92c3e9ef325dee4bd03c9.tar.gz
org.eclipse.tcf-c6f15ccfda91d3fe33e92c3e9ef325dee4bd03c9.tar.xz
org.eclipse.tcf-c6f15ccfda91d3fe33e92c3e9ef325dee4bd03c9.zip
Target Explorer: Fix save failures with OverviewEditorPage if either name or target ip is empty.
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/StatusHandlerUtil.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java
index dfec3d827..da90270c0 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java
@@ -78,6 +78,10 @@ public final class StatusHandlerUtil {
break;
}
}
+ } else if (msg != null) {
+ message.append(template != null ? NLS.bind(template, msg.trim()) : msg.trim());
+ } else if (template != null) {
+ message.append(NLS.bind(template, "")); //$NON-NLS-1$
}
if (message.length() > 0) {

Back to the top