Community
Participate
Working Groups
Created attachment 242480 [details] New folder dialog 1. Enable Bidi support: From Preferences -> General -> Globalization check enable Bidi support and set Base text direction to RTL. 2. Open new folder dialog Result: The BTD settings is not enforced on project/folder names in tree in new folder dialog
Created attachment 242481 [details] Patch for the defect
Hello Dani, Could you please review this patch ? Thank you very much for your review
I don't think that's the right fix. Why can't we just call Control#setTextDirection(int) on the Shell somewhere in IDEWorkbenchWindowAdvisor? For controls that need structured text handling, we do need to set the concrete STT, but in the general case, it's not necessary to set the BTD on each and every control.
Hi Markus. This is the right fix :-)). The approach you describe is the right approach for GUI mirroring associated with translation. This is because in that case entire application should be mirrored. Thus setting GUI direction to RTL on the top most level and propagating it to the rest of components is the right approach. As opposed to that applying text direction preference is applicable only to specific contexts in which end user text can appear. End user text is the text which is directly or indirectly introduced into the product by the end user / customer. Usually we distinguish between PII (translatable text) and end user text. Text direction should not be applied to PII. Obviously almost every editable control (input field, combo box) belongs to the category of contexts in which end user text appear. As opposed to that not all labels show end user text. The specific instance reported in this defect does. Thus the method is: (a) inspect the GUI (b) find all contexts in which end user text appear (c) apply necessary API to assure its display is in accordance with user preferences (General -> Globalization).