Bug 548801 - [Tip of the day] Avoid initial Layout Shell call during
startup
This mitigates the hack to layout the Shell to show the update icon in
the toolbar.
We do no layout call if the workbench starts up, that avoids UI freezes
in case the WS needs to be build.
New tips still trigger a layout call but
muliple calls arriving within 5 secs will be combined
Tests done:
Preference: Indicate new tips in the status bar
Test scenario: new tips are present at startup
-> Toolbar icon is shown to the user
Test scenerio: tips are read by the user
--> Toolbar icon is hidden
For this test I removed the SWTTips from plugin.xml as they provide
infinite tips.
Test scenario: delay tip provider and check if icon is still shown
Using
private void load(TipProvider provider) {
try {
Thread.sleep(20000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Also works.
Change-Id: If470cc10cdade32132c4695796b4b74a64cf55ba
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
1 file changed