Skip to main content
diff options
authorChristian W. Damus2021-07-07 10:22:15 -0400
committerPatrick Tessier2021-09-14 05:14:15 -0400
commitfdd597bab72960c8190e94b0fe21b697e81a863a (patch)
tree3dcf0ab164cbf1f482aa2eefdeeddda169f939dd /plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel.edit/src/org/eclipse
parent54137f920c4513376a581679d427676abc66a10b (diff)
Bug 574094: [Toolsmiths - Properties Editor] Unmodified XWT files are saved/reformatted
The mechanism of trying to create an output stream to test for writability of a resource truncates the resource to 0 bytes, after which it is (usually) saved again with full content. But that defeats EMF's save-only-if-modified-by-memory-buffer strategy. Instead, give the editing domain specific knowledge of ppe: URI scheme and use heuristics supported by EMF (including URI schemes and URIConverter) to test for real read-only condition and also, while saving, provide ephemeral read-only state for resources that are not modified. This prevents unmodified but otherwise writable XWT resources being saved again with slightly rearranged but otherwise identical content. Change-Id: I0df7e37847df85eb5a0f84f9b1feae7020170be8 Signed-off-by: Christian W. Damus <>
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel.edit/src/org/eclipse')
0 files changed, 0 insertions, 0 deletions

Back to the top