Create a VM of the i2b2 Workbench for Mac / Linux users (WORKBENCH-20)

[WORKBENCH-29] Temporal Query view hangs Created: 25/Aug/17  Updated: 06/Oct/17  Resolved: 06/Oct/17

Status: Done
Project: i2b2 Workbench
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.01

Type: Sub-Task Priority: Major
Reporter: Janice Donahoe Assignee: Taowei David Wang
Resolution: Done Votes: 0
Labels: VM
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: WB Release 2.0.01

When selecting the Temporal Query view a blank pop-up window will open and then the system freezes. The only way to get out of it is right click on the i2b2 Workbench Icon located in the VM toolbar on the left. Right now this icon is a giant question mark.

Comment by Taowei David Wang [ 30/Aug/17 ]
Temporal Query plugin uses a piece of code to mimic native OS's look and feel of check boxes. This piece of code was never tested on Linux, and apparently it causes hanging. I will remove this piece of code to ensure the proper operation of Temporal Query plugin. The side-effect will be that the check boxes will look 'java' instead of 'native.'
Comment by Taowei David Wang [ 31/Aug/17 ]
Hanging is resolved. Modification to allow 'native-looking' check boxes is on-going.

In the mean time, it is discovered that some components are completely black in Temporal Query Plugin. They have the right size, but look black, do not show any sub-components, also do not allow any interaction.

After a day of tracking, the culprit seems to be the option SWT.CENTER, which is used to create some of the black components. By removing them, the appearance and behavior have returned to normal.
Comment by Taowei David Wang [ 01/Sep/17 ]
Native looking checkbox images have been added for Linux. Code has been added to detect whether users are running the workbench on Linux and take the appropriate actions. This means the workbench will use these pre-rendered images for checkboxes instead of generating them on-the-fly, which causes the hanging. On Windows and Mac, the workbench still generate these images on-the-fly.

A few other bugs are fixed along the way:
1. Black, non-interactive regions in Temporal Query Plugin have been fixed.
2. Black drop boxes on the Timeline have been fixed.
3. The color discrepancy in Temporal Query Plugin's GroupPanel instructions have been fixed. (now uniformly 'gray').

Code and resources have been checked in and this issue should be ready for testing.
Generated at Sun Jul 03 21:31:05 UTC 2022 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.