Bug 273722 - BIDI3.5:HCG_Incorrect display of bidi visual data content
Summary: BIDI3.5:HCG_Incorrect display of bidi visual data content
Status: NEW
Alias: None
Product: Data Tools
Classification: Tools
Component: SQL Results View (show other bugs)
Version: 1.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: future   Edit
Assignee: Hui Cao CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 298392 273198
Blocks:
  Show dependency tree
 
Reported: 2009-04-26 10:06 EDT by Adir Pekarevich CLA
Modified: 2010-11-16 03:25 EST (History)
8 users (show)

See Also:


Attachments
Wrong display of visual data in DataTools views (191.21 KB, image/jpeg)
2009-04-26 10:11 EDT, Adir Pekarevich CLA
no flags Details
Bidi changes to org.eclipse.datatools.sqltools.data.ui plugin (46.11 KB, patch)
2010-05-05 05:19 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.connectivity (2.15 KB, patch)
2010-05-05 05:22 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.result plugin (3.70 KB, text/plain)
2010-05-05 05:24 EDT, Ira Fishbein CLA
no flags Details
patch file for org.eclipse.datatools.sqltools.tabledataeditor plugin (2.20 KB, patch)
2010-05-05 05:27 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.data.ui plugin (50.04 KB, patch)
2010-06-02 04:27 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.connectivity plugin (6.16 KB, patch)
2010-06-02 04:28 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.result plugin (7.51 KB, patch)
2010-06-02 04:29 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.tabledataeditor plugin (5.11 KB, patch)
2010-06-02 04:29 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.connectivity.sqm.core.ui plugin (37.80 KB, patch)
2010-06-02 04:31 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.result.ui plugin (1.44 KB, patch)
2010-06-02 04:33 EDT, Ira Fishbein CLA
no flags Details | Diff
Brief design doc of implemented Bidi support for DTP (169.50 KB, application/msword)
2010-06-02 04:35 EDT, Ira Fishbein CLA
no flags Details
patch file for org.eclipse.datatools.connectivity plugin (6.72 KB, patch)
2010-10-06 09:11 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.data.ui plugin (48.82 KB, patch)
2010-10-06 09:13 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.result plugin (7.58 KB, patch)
2010-10-06 09:15 EDT, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.tabledataeditor plugin (4.65 KB, text/plain)
2010-10-06 09:16 EDT, Ira Fishbein CLA
no flags Details
patch file for org.eclipse.datatools.connectivity.sqm.core.ui plugin (38.43 KB, patch)
2010-11-16 03:06 EST, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.connectivity plugin (6.72 KB, patch)
2010-11-16 03:07 EST, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.data.ui plugin (52.89 KB, patch)
2010-11-16 03:08 EST, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.result plugin (7.59 KB, patch)
2010-11-16 03:08 EST, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.result.ui plugin (1.44 KB, patch)
2010-11-16 03:09 EST, Ira Fishbein CLA
no flags Details | Diff
patch file for org.eclipse.datatools.sqltools.tabledataeditor plugin (4.65 KB, patch)
2010-11-16 03:10 EST, Ira Fishbein CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adir Pekarevich CLA 2009-04-26 10:06:04 EDT
Build ID: I20090313-0100

Steps To Reproduce:
Steps To Reproduce:
1. Connect to i/so or z/os DB2
2. Open Data Source Explorer
3. Navigate to the table which includes bidi content (TESLIB.SHORT11 in attachment)
4. RMC, Data, Sample contents
5. Open SQL results view

result:
bidi data is rendered wrongly in SQL results view

More information:
More information:
The reason of the problem is that bidi data is saved on legacy systems in a visual format, while on windows it is saved in the logical format. In order to display and edit this data correctly client controls have to learn
how to display and edit visual bidi data or at least make bidi conversions for the data
It is important to mention that some mechanism that allows to specify in which format bidi data is saved on the legacy system should be in place as well
Comment 1 Adir Pekarevich CLA 2009-04-26 10:11:38 EDT
Created attachment 133247 [details]
Wrong display of visual data in DataTools views
Comment 2 Hung Hsi CLA 2009-04-30 16:40:28 EDT
Moved to 1.7.1.
Comment 3 Adir Pekarevich CLA 2009-09-15 13:20:49 EDT
where else host data is displayed on the client except "sample data" ?
Comment 4 Ira Fishbein CLA 2010-05-05 05:19:12 EDT
Created attachment 167091 [details]
Bidi changes to org.eclipse.datatools.sqltools.data.ui plugin

The pach contains new Bidi classes (inside bidi package) and changes to existing code.
BidiLayout widget allows Bidi users to manipulate Bidi text the same way they used to do it on mainframe. It is based on StyledText functionality.
BidiLayoutCellEditor is build over BidiLayout in the same way TextCellEditor is build over Text.
Comment 5 Ira Fishbein CLA 2010-05-05 05:22:17 EDT
Created attachment 167092 [details]
patch file for org.eclipse.datatools.connectivity

One method is added to DriverUtil class. The method checks if Bidi Support is requested. In order to enable Bidi support some property should be added to JDBC connection.
Comment 6 Ira Fishbein CLA 2010-05-05 05:24:03 EDT
Created attachment 167093 [details]
patch file for org.eclipse.datatools.sqltools.result plugin

The changes take care over correct display of Bidi data in Result view
Comment 7 Ira Fishbein CLA 2010-05-05 05:27:55 EDT
Created attachment 167094 [details]
patch file for org.eclipse.datatools.sqltools.tabledataeditor plugin

Bidi flag is set for OperationCommand
Comment 8 Ira Fishbein CLA 2010-06-02 04:27:07 EDT
Created attachment 170752 [details]
patch file for org.eclipse.datatools.sqltools.data.ui plugin
Comment 9 Ira Fishbein CLA 2010-06-02 04:28:10 EDT
Created attachment 170754 [details]
patch file for org.eclipse.datatools.connectivity plugin
Comment 10 Ira Fishbein CLA 2010-06-02 04:29:12 EDT
Created attachment 170755 [details]
patch file for org.eclipse.datatools.sqltools.result plugin
Comment 11 Ira Fishbein CLA 2010-06-02 04:29:40 EDT
Created attachment 170756 [details]
patch file for org.eclipse.datatools.sqltools.tabledataeditor plugin
Comment 12 Ira Fishbein CLA 2010-06-02 04:31:37 EDT
Created attachment 170757 [details]
patch file for org.eclipse.datatools.connectivity.sqm.core.ui plugin
Comment 13 Ira Fishbein CLA 2010-06-02 04:33:19 EDT
Created attachment 170758 [details]
patch file for org.eclipse.datatools.sqltools.result.ui plugin
Comment 14 Ira Fishbein CLA 2010-06-02 04:35:32 EDT
Created attachment 170759 [details]
Brief design doc of implemented Bidi support for DTP
Comment 15 Tomer Mahlin CLA 2010-06-02 05:08:37 EDT
Great patch ! I have actually two comments / clarifications:
1. Bidi handling is applied only on the content data (data stored in database tables), meta data (names of tables, names of tables' columns) remains unaffected. It would be nice to have either a separate parameter for meta data or to extend the application of Bidi handling to meta data as well.
2. Control over base text direction (LTR / RTL / Contextual) should be independent from GUI orientation. Namely, in order to support LTR base text direction we should not enforce LTR GUI orientation (aka not mirrored GUI). Similarly, for enforcement of RTL base text direction we should not enforce RTL GUI orientation (aka mirrored GUI). Currently the design suggests to mirror the table in order to enforce RTL base text direction. Having said that till control over base text direction independently from GUI orientation is supported on SWT level (for info please see bug 273198), I believe that what is currently suggested is an acceptable compromise in the context of tabular display of data (mirroring of table does not significantly affects it's graphics, except for order of columns).
Comment 16 Ira Fishbein CLA 2010-10-06 09:11:45 EDT
Created attachment 180323 [details]
patch file for org.eclipse.datatools.connectivity plugin
Comment 17 Ira Fishbein CLA 2010-10-06 09:13:24 EDT
Created attachment 180324 [details]
patch file for org.eclipse.datatools.sqltools.data.ui plugin
Comment 18 Ira Fishbein CLA 2010-10-06 09:15:23 EDT
Created attachment 180325 [details]
patch file for org.eclipse.datatools.sqltools.result plugin
Comment 19 Ira Fishbein CLA 2010-10-06 09:16:07 EDT
Created attachment 180326 [details]
patch file for org.eclipse.datatools.sqltools.tabledataeditor plugin
Comment 20 Ira Fishbein CLA 2010-11-16 03:06:25 EST
Created attachment 183188 [details]
patch file for org.eclipse.datatools.connectivity.sqm.core.ui plugin
Comment 21 Ira Fishbein CLA 2010-11-16 03:07:24 EST
Created attachment 183189 [details]
patch file for org.eclipse.datatools.connectivity plugin
Comment 22 Ira Fishbein CLA 2010-11-16 03:08:08 EST
Created attachment 183190 [details]
patch file for org.eclipse.datatools.sqltools.data.ui plugin
Comment 23 Ira Fishbein CLA 2010-11-16 03:08:46 EST
Created attachment 183191 [details]
patch file for org.eclipse.datatools.sqltools.result plugin
Comment 24 Ira Fishbein CLA 2010-11-16 03:09:22 EST
Created attachment 183192 [details]
patch file for org.eclipse.datatools.sqltools.result.ui plugin
Comment 25 Ira Fishbein CLA 2010-11-16 03:10:06 EST
Created attachment 183193 [details]
patch file for org.eclipse.datatools.sqltools.tabledataeditor plugin
Comment 26 Ira Fishbein CLA 2010-11-16 03:25:15 EST
Hi Brian,
All code was updated to compilation with eclipse342 as requested. Unfortunately it is imposible to make it work for eclipse342. In my code I am using SWT additions that were added to 3.6 version. When my code runs with SWT lower than 36, there is some message in preferences that doesn't allow to turn Bidi support on. Since I am using SWT additions, that don't exist in SWT34, Java Reflaction is used in order to be able to compile the code with 'younger' eclipse version. Major changes were done in BidiLayout class.
Please let me know if some additional clarifications are needed.
Ira