diff options
author | Felipe Heidrich | 2007-08-17 21:25:23 +0000 |
---|---|---|
committer | Felipe Heidrich | 2007-08-17 21:25:23 +0000 |
commit | f8bcad517d49f89c7755811b303699bacbc88298 (patch) | |
tree | 99b933292adc4c5f2b7524fbed87ac7d72b0231a | |
parent | a0703804800105e22ed63b039cfdef9c217caa2e (diff) | |
download | eclipse.platform.swt-f8bcad517d49f89c7755811b303699bacbc88298.tar.gz eclipse.platform.swt-f8bcad517d49f89c7755811b303699bacbc88298.tar.xz eclipse.platform.swt-f8bcad517d49f89c7755811b303699bacbc88298.zip |
refactor control to widget
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | 12 |
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; |