Skip to main content
diff options
authorChristian W. Damus2016-05-10 17:30:22 -0400
committerGerrit Code Review @ Eclipse.org2016-05-13 13:41:08 -0400
commit39b2279c74535bb53d530b48e87c80441695a028 (patch)
tree9e23243219c81b2354ba2bb518f9c81684091487 /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/plugin.xml
parent3e461b4650c6b162f9d4392f3ce9d176fc4d1fcd (diff)
Bug 492482: [Stereotype Display] Undo of "Show all related links" failure for stereotyped connectors (with model corruption) Try as much as necessary to make the undo/redo scenario of dropping Capsules to create CapsuleParts in Papyrus-RT Capsule State Machines work. That is, not to fail to undo with an index-out-of-bounds exception in undoing a ListChange in the ChangeDescription. Several things: * add a new mix-in interface for edit-policies that perform automatic edits to the notation model à la CanonicalEditPolicy with operations for execution of commands that prefer to reuse a read/write transaction if available, instead of an unprotected write * use this new protocol in the applied-stereotype edit-policies to try whenever possible to record the changes for correct undo/redo * change the applied-stereotype edit-policies to use a private pre-commit listener on the DiagramEventBroker to react to changes within a transaction instead of post-commit, again to promote the recording of changes as much as possible for undo/redo * update the default canonical child views strategy to enable registration of view types that it should not attempt to manage * use the new view-type filtering mechanism to exclude applied- stereotype views from canonical control * update all of the CommandUtil APIs for command execution that are only used by the applied-stereotype display controllers to piggy- back on the active read/write transaction if there is one, for plausible undo/redo support Note that this patch does include API changes, but not breaking changes, after the Neon M7 feature-freeze milestone. Change-Id: Ibe7978416d26c81474ccc4608e1090de5e5ac473
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/plugin.xml')
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/plugin.xml
index 6ec94f1bff2..4eeaf1f1345 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/plugin.xml
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/plugin.xml
@@ -30,4 +30,13 @@
+ <extension
+ point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration">
+ <elementTypeSet
+ clientContextID=""
+ path="model/stereotype-edit.elementtypesconfigurations">
+ </elementTypeSet>
+ </extension>

Back to the top