Community
Participate
Working Groups
Build Identifier: 20110218-0911 REDHAT, SLES11: For the style : SWT.DROP_DOWN the arrow of shrink item is not mirrored when setOrientation() used, the arrow mirrored only if created in mirrored orientation (RTL). Reproducible: Always Steps to Reproduce: 1. Apply the attached patch on the "org.eclipse.swt.examples" project (project level). 2. Go to org.eclipse.swt.examples.mirroringTest package. 3. Run the ControlExamle. 4. Go to the "CoolBar" Tab. 5. In "Item Styles..." group the check the "SWT.DROP_DOWN" option. 6. In second line of the CoolBar stretch the radio CoolItem (group of items in the middle) to their left (till you get the drop down arrow). 7. In "Orientation..." group, click the "set orientation SWT.RIGHT_TO_LEFT" radio option. result : the arrow of the drop down not mirrored. Note: if you click "create new SWT.RIGHT_TO_LEFT" then the arrow is mirrored.
Created attachment 194489 [details] Patch for Linux.
Created attachment 194490 [details] picture of the problem.
Moshe, please fix it. Note that Coolbar is emulated in GTK (the code is shared among several platforms).
Created attachment 194576 [details] Patch for changing the direction of the chevron dynamically
This fix only updates the chevron after the next relayout and I think you can fix this problem without adding new instance variable (we avoid adding instance variables whe possible).
Created attachment 194697 [details] A new patch following your suggestions I introduced new method setOrientation for both CoolBar and CoolItem
(In reply to comment #6) > Created attachment 194697 [details] > A new patch following your suggestions > I introduced new method setOrientation for both CoolBar and CoolItem You forgot that CoolBar is emulated (common code), your code introduces a compilation bug in cocoa, carbon, motif, etc. Just put all the code in CoolBar#setOrientation(int) [the public one].
Created attachment 194809 [details] The new patch fixing the error compilation Sorry I forgot that CoolBar was common code
Created attachment 194948 [details] Patch
(Moshe, are you an Eclipse committer ? - Btw, you code is fine, I changed a bit but it is basically the same code). Bog, this is some low risk fix for a new feature. it should not impact Eclipse.
Hello Felipe, No I am not an Eclipse committer. Anyway thank you very much for your review and your invaluable comments.
Bogdan, can you pls approve or reject this problem ?
fixed in HEAD