Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2006-11-01 09:25:28 +0000
committerdstadnik2006-11-01 09:25:28 +0000
commitf515a2e4e3201ffe138194763a02d65b88aa0b5f (patch)
tree906e3ac57b0416acd0d64e778802914dcac933b1
parentb730fa2d3e26ba425a0906e7c40e8cecc0c3899f (diff)
downloadorg.eclipse.gmf-tooling-f515a2e4e3201ffe138194763a02d65b88aa0b5f.tar.gz
org.eclipse.gmf-tooling-f515a2e4e3201ffe138194763a02d65b88aa0b5f.tar.xz
org.eclipse.gmf-tooling-f515a2e4e3201ffe138194763a02d65b88aa0b5f.zip
allow to set tooltip
-rw-r--r--plugins/org.eclipse.gmf.bridge.ui.dashboard/src/org/eclipse/gmf/internal/bridge/ui/dashboard/ModelFigure.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.bridge.ui.dashboard/src/org/eclipse/gmf/internal/bridge/ui/dashboard/ModelFigure.java b/plugins/org.eclipse.gmf.bridge.ui.dashboard/src/org/eclipse/gmf/internal/bridge/ui/dashboard/ModelFigure.java
index df6d613d8..49e7bdcb3 100644
--- a/plugins/org.eclipse.gmf.bridge.ui.dashboard/src/org/eclipse/gmf/internal/bridge/ui/dashboard/ModelFigure.java
+++ b/plugins/org.eclipse.gmf.bridge.ui.dashboard/src/org/eclipse/gmf/internal/bridge/ui/dashboard/ModelFigure.java
@@ -146,4 +146,13 @@ public class ModelFigure extends RectangleFigure implements ActionContainer {
}
getLabel(1).setText(name);
}
+
+ public void setFullName(String name) {
+ if (name == null || name.trim().length() == 0) {
+ setToolTip(null);
+ } else {
+ Label tooltip = new Label(name);
+ setToolTip(tooltip);
+ }
+ }
}

Back to the top