Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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)
downloadorg.eclipse.papyrus-fdd597bab72960c8190e94b0fe21b697e81a863a.tar.gz
org.eclipse.papyrus-fdd597bab72960c8190e94b0fe21b697e81a863a.tar.xz
org.eclipse.papyrus-fdd597bab72960c8190e94b0fe21b697e81a863a.zip
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 <give.a.damus@gmail.com>
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