|
From: Christian H. (JIRA) <no...@at...> - 2007-09-19 11:31:47
|
start Application / showPage() should be called on EDT
------------------------------------------------------
Key: RCP-489
URL: http://opensource.atlassian.com/projects/spring/browse/RCP-489
Project: Spring Framework Rich Client Project
Issue Type: Improvement
Components: Application Framework
Reporter: Christian Heilmann
Priority: Minor
The ApplicationLauncher should start the Application on the EDT or the showPage()-Method should be called the first time on the EDT.
On Views it is often the case that in onFocusGained() you make a asynchronous remote-call to get the data to set in the model in the view.
So it is a good thing, to put some Assert.isTrue(SwingUtilities.isisEventDispatchThread()) in your Views, to check, that the model or gui-components are never changed outside the EDT.
But now the check in Views is the first-time not possible, because the Lifecycle-Methods of the Views are called the first time, when the Application is starting, outside the EDT.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|