Community
Participate
Working Groups
Build Identifier: I20100330-0800 The arrow icons using for expand and hide the palette should be flipped in RTL mode i.e right arrow for expanding and left arrow in order to hide it. Reproducible: Always Steps to Reproduce: 1. Launch eclipse using -nl he attribute in order to enable RTL orientation 2. Select File -> New -> Example -> Logic Diagram and hit "Next." 3. In the new logic file dialog type some file name and click Finish Result: In the logic editor that opens up, the appropriate arrow icons for the palette are flipped. See attached screenshots
Created attachment 164032 [details] The icon in order to expand the palette. Should be right in RTL
Created attachment 164033 [details] The icon in order to hide the palette. Should be left in RTL
I did some investigation. The show and hide palette triangles are constructed in org.eclipse.gef.ui.palette.FlyoutPaletteComposite, instead of using a real bitmap. Looks like the ButtonCanvas.getArrowDirection() method has some logics to check if the UI is mirrored and set the arrow direction accordingly. Seems like the code is not working. Please investigate. private int getArrowDirection() { int direction = PositionConstants.EAST; if (isInState(STATE_EXPANDED | STATE_PINNED_OPEN)) direction = dock == PositionConstants.WEST ? PositionConstants.WEST : PositionConstants.EAST; else direction = dock == PositionConstants.WEST ? PositionConstants.EAST : PositionConstants.WEST; if (isMirrored()) { if (direction == PositionConstants.WEST) direction = PositionConstants.EAST; else direction = PositionConstants.WEST; } return direction; }