Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2007-08-17 21:25:23 +0000
committerFelipe Heidrich2007-08-17 21:25:23 +0000
commitf8bcad517d49f89c7755811b303699bacbc88298 (patch)
tree99b933292adc4c5f2b7524fbed87ac7d72b0231a
parenta0703804800105e22ed63b039cfdef9c217caa2e (diff)
downloadeclipse.platform.swt-f8bcad517d49f89c7755811b303699bacbc88298.tar.gz
eclipse.platform.swt-f8bcad517d49f89c7755811b303699bacbc88298.tar.xz
eclipse.platform.swt-f8bcad517d49f89c7755811b303699bacbc88298.zip
refactor control to widget
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
index 3ded437ed9..087f84ef0a 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
@@ -1555,15 +1555,15 @@ LRESULT wmNotify (NMHDR hdr, int /*long*/ wParam, int /*long*/ lParam) {
* Ensure that the orientation of the tool tip matches
* the orientation of the control.
*/
- Widget control = null;
+ Widget widget = null;
int /*long*/ hwnd = hdr.idFrom;
- if (hwnd != 0 && ((lpnmtdi.uFlags & OS.TTF_IDISHWND) != 0)) {
- control = display.getControl (hwnd);
+ if ((lpnmtdi.uFlags & OS.TTF_IDISHWND) != 0) {
+ widget = display.getControl (hwnd);
} else {
- control = shell.findToolTip ((int)/*64*/hdr.idFrom);
+ widget = shell.findToolTip ((int)/*64*/hdr.idFrom);
}
- if (control != null) {
- if ((control.getStyle () & SWT.RIGHT_TO_LEFT) != 0) {
+ if (widget != null) {
+ if ((widget.getStyle () & SWT.RIGHT_TO_LEFT) != 0) {
lpnmtdi.uFlags |= OS.TTF_RTLREADING;
} else {
lpnmtdi.uFlags &= ~OS.TTF_RTLREADING;

Back to the top