Community
Participate
Working Groups
Created attachment 259043 [details] Sample project to reproduce A popup "Cannot modify resource set without a write transaction" is displayed when exporting as image for the diagram in attachment. Scenario to reproduce : 1. Import projects from the attached archive 2. Launch a runtime from them 3. Import AQLBug.test in this second runtime 4. Open the diagram 5. Export as diagram using the action from tabbar => KO the popup appears The popup appears because of IllegalStateException which is thrown from TransactionChangeRecorder.assertWriting() because DiagramDialectUIServices .synchronizeDiagram() is not called in a EMF Command. In addition non GMF model change is done by DDiagramCanonicalSynchronizer, it is only a touch notification from RegionContainerUpdateLayoutOperation which could be avoided.
New Gerrit change created: https://git.eclipse.org/r/63697
This occurs with diagram having compartment.
New Gerrit change created: https://git.eclipse.org/r/71496
Gerrit change https://git.eclipse.org/r/71496 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a6f16a6bdac8ac235a233f875dbfd5b12253dd9a
The provided correction allows to avoid useless touch notifications in regions layout. With this, the IllegalStateException does not occur anymore on up-to-date diagrams. Bug 492516 has been created to analyse the need for this canonical refresh done at export time. The first proposed patchset has been moved to Bug 492516. We kept only the touch notification part for the current bugzilla
Validated on Sirius 4.0.0.201605180923 (4.0.0 RC1)
Available in Sirius 4.0.0.