Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-06-04 04:47:16 -0400
committerUwe Stieber2013-06-04 04:47:16 -0400
commit316e46e53b01320d8db82f0baa3e909e835661c9 (patch)
tree96f5c05190435f3373c2b4fbef686902ce28db3d /target_explorer/plugins/org.eclipse.tcf.te.ui.swt
parent86b5d21293e0047cf791e7a1df2453ccf83fc5a8 (diff)
downloadorg.eclipse.tcf-316e46e53b01320d8db82f0baa3e909e835661c9.tar.gz
org.eclipse.tcf-316e46e53b01320d8db82f0baa3e909e835661c9.tar.xz
org.eclipse.tcf-316e46e53b01320d8db82f0baa3e909e835661c9.zip
Target Explorer: Allow label customization in process monitor properties view sections
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.ui.swt')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java
index bde8ef511..8378d5475 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java
@@ -12,6 +12,7 @@ package org.eclipse.tcf.te.ui.swt;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
@@ -58,6 +59,9 @@ public final class SWTControlUtil {
if (control instanceof Label) {
return ((Label)control).getText().trim();
}
+ if (control instanceof CLabel) {
+ return ((CLabel)control).getText().trim();
+ }
if (control instanceof Link) {
return ((Link)control).getText().trim();
}
@@ -98,6 +102,9 @@ public final class SWTControlUtil {
if (control instanceof Label) {
((Label)control).setText(trimmedValue);
}
+ if (control instanceof CLabel) {
+ ((CLabel)control).setText(trimmedValue);
+ }
if (control instanceof Link) {
((Link)control).setText(trimmedValue);
}

Back to the top