Community
Participate
Working Groups
Build ID: Integration build ID I20080324-1005 Steps To Reproduce: 1. Install: - Eclipse SDK with NL Bidi package 2. Run mirrored Eclipse with Hebrew translation (use command line argument -nl iw) 3. Create a simple project in the workspace 4. Go to File->Example…->Logic Diagram. Next. Finish 5. Drag the Voltage positive node (V+) from the palette to the editor. 6. Expand voltage options in the palette 7. Inspect V+ display in opened views: editor, palette, outline Expected result: Positive voltage should be displayed V+ Actual result: Positive voltage is displayed V+ and +V More information:
Created attachment 93799 [details] positive voltage
This is a specific issue with the string "V+". The same issue occurs when you enter you enter the string "V+" into a text field in rtl mode on a GMF (GEF) based diagram, "+V" is displayed. The string is persisted as "V+". Interestingly that is you enter "+V", it also gets flipped on the diagram back to "V+". I traced the code and the BiDi processor is creating two fragments "V" and "+" and flipping them. I am not sure we want to look at changing this, as the processing must be there for a reason. Can we confirm that this is a bug? The problem also occurs on Windows.
(In reply to comment #2) >Can we confirm that this is a bug? It seems the menu shows it correctly, so maybe it is a bug, but I am not sure. Helena, can you test with another app or with SWT's StyledText? What does the direct-edit cell-editor do?
Looks like right to left text direction in controls that display +V. Please try to change the base text direction of string to LTR, using TextProcessor. According to TextProcessor implementation (https://bugs.eclipse.org/bugs/attachment.cgi?id=34133) when there is at least one token found the string is wrapped with LRE on the left side and PDF on the right side. TextProcessor should be used in the following way: For V+: str = TextProcessor (str, "+")
(In reply to comment #4) > Looks like right to left text direction in controls that display +V. > Please try to change the base text direction of string to LTR, using > TextProcessor. According to TextProcessor implementation > (https://bugs.eclipse.org/bugs/attachment.cgi?id=34133) when there is at least > one token found the string is wrapped with LRE on the left side and PDF on the > right side. TextProcessor should be used in the following way: > For V+: str = TextProcessor (str, "+") But the same string is being displayed in both the Menu and the Palette. However, one is being rendered by GTK, the other using icu4j. The real problem is that the results are not consistent. We should fix the problem, not avoid it by inserting bidi control characters.
I just wnated to make sure everybody understand what the expected display is, such that the efforts to resolve the issue are applied in the right direction. The expected display is: V+