You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2013/07/20 10:32:49 UTC

[jira] [Created] (CAY-1852) Straighten thread model and synchronization in the Modeler

Andrus Adamchik created CAY-1852:
------------------------------------

             Summary: Straighten thread model and synchronization in the Modeler
                 Key: CAY-1852
                 URL: https://issues.apache.org/jira/browse/CAY-1852
             Project: Cayenne
          Issue Type: Improvement
          Components: Modeler
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
            Priority: Minor
             Fix For: 3.2M2


Lots of synchronization in the Modeler code points to our earlier misunderstanding of Swing single-thread GUI update model [1]. We should remove synchronized blocks from the UI code, and at the same time ensure SwingUtilities.invokeLater is used from other threads when updating the GUI. Most notably - ProjectWatchdog thread.


[1] http://docs.oracle.com/javase/tutorial/uiswing/concurrency/dispatch.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira