Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 136316

Summary: Animated messages do not work before workbench runs (WorkbenchControlAnimator not running)
Product: [Eclipse Project] Platform Reporter: Matthias Lanz <lanz>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P5 Keywords: helpwanted
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Errortext in TitleAreaDialog not visible none

Description Matthias Lanz CLA 2006-04-12 08:53:10 EDT
Animated messages animated by WorkbenchControlAnimator are not shown before PlatformUI.createAndRunWorkbench() is called.

This happens in a RCP application if you open a login dialog before starting the workbench for example. If you call setErrorMessage() in a TitleAreaDialog, the message is not shown because WorbenchControlAnimator is the default animator and requires the running workbench.

A workaround is to call Policy.setAnimator(new ControlAnimator()) before opening the dialog and to abstain from animated messages.
Comment 1 Shaun Skelton CLA 2006-04-12 14:45:31 EDT
Hi Matthias, would you be able to provide a test we could use to test our fix?
Comment 2 Matthias Lanz CLA 2006-04-12 15:58:36 EDT
Created attachment 38442 [details]
Errortext in TitleAreaDialog not visible

The file is an eclipse project with an RCP application, generated with the HelloRCP wizard.
Before the workbench starts a Dialog (TestDialog) appears. When you click on OK the Dialog's setErrorMessage(String) method is invoked which should show an animated errortext - but it doesn't.

If you look in Application.run you can comment out UIPolicy.setAnimator(new ControlAnimator()) and the errortext is shown correctly but without animation.
Comment 3 Matthias Lanz CLA 2006-04-12 16:00:28 EDT
btw - I like the animated errortexts so I hope the fix is not an deactivation :-)
Comment 4 Tod Creasey CLA 2006-04-13 10:48:25 EDT
Patch released for build >20060413
Comment 5 Boris Bokowski CLA 2006-08-21 12:36:33 EDT
Tod, can this be marked as fixed?
Comment 6 Tod Creasey CLA 2007-06-18 16:14:12 EDT
I think the patch reference is a mistake - I don't believe we have done anything here.

There are currently no plans to work on this although we would be happy to review a a patch.
Comment 7 Susan McCourt CLA 2009-07-15 14:36:12 EDT
The animator classes in JFace are deprecated.  I'm assuming this bug is no longer valid.  Please reopen and update the problem description if it is still valid.