diff options
author | Felipe Heidrich <fheidric> | 2007-02-08 22:19:16 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2007-02-08 22:19:16 +0000 |
commit | 20f91dbccf9e343f4e13fbfefa37b42483c0e719 (patch) | |
tree | 3df0373a02e2265cdcd52e427e0f430cb44adde7 | |
parent | 455e14c922cec17dd3b77d7a39f8da3fcb246440 (diff) | |
download | eclipse.platform.swt-20f91dbccf9e343f4e13fbfefa37b42483c0e719.tar.gz eclipse.platform.swt-20f91dbccf9e343f4e13fbfefa37b42483c0e719.tar.xz eclipse.platform.swt-20f91dbccf9e343f4e13fbfefa37b42483c0e719.zip |
fixed tiny tool tips
4 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TabItem.java index 908a4390af..45927df0e1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TabItem.java @@ -350,6 +350,7 @@ public void setText (String string) { public void setToolTipText (String string) { checkWidget(); toolTipText = string; + if (string != null && string.length() == 0) string = null; int strPtr = createDotNetString (string, false); int header = OS.HeaderedContentControl_Header (handle); OS.FrameworkElement_ToolTip (header, strPtr); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TableColumn.java index 1838b32907..874b8cdf5c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TableColumn.java @@ -571,6 +571,7 @@ public void setText (String string) { */ public void setToolTipText (String string) { checkWidget (); + if (string != null && string.length() == 0) string = null; int strPtr = createDotNetString (string, false); OS.FrameworkElement_ToolTip (headerHandle, strPtr); OS.GCHandle_Free (strPtr); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/ToolItem.java index b9d86d74d4..bf924d6f00 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/ToolItem.java @@ -784,6 +784,7 @@ public void setText (String string) { public void setToolTipText (String string) { checkWidget (); toolTipText = string; + if (string != null && string.length() == 0) string = null; int strPtr = createDotNetString (string, false); OS.FrameworkElement_ToolTip (handle, strPtr); if (strPtr != 0) OS.GCHandle_Free (strPtr); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TreeColumn.java index 908aeb3b98..ca3828257b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/TreeColumn.java @@ -610,6 +610,7 @@ public void setText (String string) { */ public void setToolTipText (String string) { checkWidget(); + if (string != null && string.length() == 0) string = null; int strPtr = createDotNetString (string, false); OS.FrameworkElement_ToolTip (headerHandle, strPtr); OS.GCHandle_Free (strPtr); |