Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-11-25 03:34:36 -0500
committerTobias Schwarz2013-11-25 03:34:36 -0500
commitd0663de337b90ce8a936db87bff4724ff3acf0df (patch)
tree55718f4568d8b3c0b616a9443334f5669c66708c /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf
parent03fefdeb705cc20d4fd354538fab8b1e1fcb4b1a (diff)
downloadorg.eclipse.tcf-d0663de337b90ce8a936db87bff4724ff3acf0df.tar.gz
org.eclipse.tcf-d0663de337b90ce8a936db87bff4724ff3acf0df.tar.xz
org.eclipse.tcf-d0663de337b90ce8a936db87bff4724ff3acf0df.zip
Target Explorer: add description (tooltip) to simulator config button
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorTypeSelectionControl.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorTypeSelectionControl.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorTypeSelectionControl.java
index 40867de03..a4d7baa12 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorTypeSelectionControl.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorTypeSelectionControl.java
@@ -202,7 +202,16 @@ public class SimulatorTypeSelectionControl extends BaseEditBrowseTextControl {
ISimulatorServiceUIDelegate uiDelegate = id2delegate.get(id);
if (getButtonControl() != null) {
getButtonControl().setEnabled(enabled && uiDelegate != null && uiDelegate.canConfigure());
+ if (getButtonControl().isEnabled() && uiDelegate != null) {
+ String config = id2config.get(getSelectedSimulatorId());
+ String description = uiDelegate.getDescription(config);
+ getButtonControl().setToolTipText(description);
+ }
+ else {
+ getButtonControl().setToolTipText(null);
+ }
}
+
}
/* (non-Javadoc)

Back to the top