diff options
author | Felipe Heidrich | 2010-12-23 19:03:29 +0000 |
---|---|---|
committer | Felipe Heidrich | 2010-12-23 19:03:29 +0000 |
commit | e1ddb07c7c0cc45210739f25c19adbd93ffa639d (patch) | |
tree | e86a3ee5e0dbe8ad0879c9dabcb511e901373a07 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java | |
parent | b13cb0959e0afe3c17aa178a3bca80d7d1fd22d7 (diff) | |
download | eclipse.platform.swt-e1ddb07c7c0cc45210739f25c19adbd93ffa639d.tar.gz eclipse.platform.swt-e1ddb07c7c0cc45210739f25c19adbd93ffa639d.tar.xz eclipse.platform.swt-e1ddb07c7c0cc45210739f25c19adbd93ffa639d.zip |
[Bug 29779] BIDI: lack of ability to change orientation of widget in runtime
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java index edf5025499..badb1a354f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java @@ -1189,6 +1189,18 @@ public void setMinimized (boolean minimized) { _setMinimized (minimized); } +public void setOrientation (int orientation) { + super.setOrientation (orientation); + if (menus != null) { + for (int i=0; i<menus.length; i++) { + Menu menu = menus [i]; + if (menu != null && !menu.isDisposed () && (menu.getStyle () & SWT.POP_UP) != 0) { + menu._setOrientation (menu.getOrientation ()); + } + } + } +} + void setParent () { /* * In order for an MDI child window to support |