Community
Participate
Working Groups
The post commit listener org.eclipse.sirius.diagram.sequence.ui.tool.internal.edit.part.SequenceDiagramEditPart.refreshZorder do the refresh of the edit parts contained in the sequence diagram. The test SequenceExecutionBasicAndReturnMessageTest is broken because when the transaction is executed in a non UI Thread then the post commit is also executed in the no UIThread which lead to SWTException Invalid thread access. The fi consists in executing the edit part refresh in the UI thread
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/176940
Calling the code in syncExec on UI thread is not sufficient because we get a at org.eclipse.emf.transaction.util.Lock.uiSafeAcquire(Lock.java:419) at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.acquire(TransactionalEditingDomainImpl.java:580) at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.activate(TransactionalEditingDomainImpl.java:508) at org.eclipse.emf.transaction.impl.TransactionImpl.start(TransactionImpl.java:204) at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.startTransaction(TransactionalEditingDomainImpl.java:424) at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:321) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.refresh(GraphicalEditPart.java:852) An AsyncExec fixes the issue
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/177031
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/177031 was merged to [v6.4.x]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9f8d6ddb2d09550fd057fe2ba3281ffa152abb85
Steps to validate: - check the result of SequenceExecutionBasicAndReturnMessageTest
Verified on 6.4.2rc3.
Available in Sirius 6.4.2: http://download.eclipse.org/sirius/updates/releases/6.4.2