diff options
author | Steve Northover <steve> | 2005-08-31 17:48:10 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2005-08-31 17:48:10 +0000 |
commit | 47c737ebfb92a90218e4490fc6b9c7b2ae60d200 (patch) | |
tree | 43c28719bb919315b9cbb1ceca116703775ff118 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java | |
parent | b36f97e8a58715f907c2ff4f1fa2768aeeedb4d3 (diff) | |
download | eclipse.platform.swt-47c737ebfb92a90218e4490fc6b9c7b2ae60d200.tar.gz eclipse.platform.swt-47c737ebfb92a90218e4490fc6b9c7b2ae60d200.tar.xz eclipse.platform.swt-47c737ebfb92a90218e4490fc6b9c7b2ae60d200.zip |
4572 - Need support for tool tips in table columns (1GBZLD1)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java index b7963dc88e..c561b455d4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java @@ -38,6 +38,7 @@ public class TreeColumn extends Item { Tree parent; int modelIndex, lastButton, lastTime, lastX, lastWidth; boolean customDraw, useFixedWidth; + String toolTipText; /** * Constructs a new instance of this class given its parent @@ -279,6 +280,11 @@ public boolean getResizable () { return OS.gtk_tree_view_column_get_resizable (handle); } +public String getToolTipText () { + checkWidget(); + return toolTipText; +} + /** * Gets the width of the receiver. * @@ -561,6 +567,17 @@ public void setText (String string) { } } +public void setToolTipText (String string) { + checkWidget(); + toolTipText = string; + Shell shell = parent._getShell (); + setToolTipText (shell, toolTipText); +} + +void setToolTipText (Shell shell, String string) { + shell.setToolTipText (buttonHandle, string); +} + /** * Sets the width of the receiver. * |