Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-02-04 23:21:45 +0000
committerChristian W. Damus2014-02-07 23:55:45 +0000
commit09f0c73e06c20481ec3b8b58c3e83798ac7c85b9 (patch)
tree1f508bcd2954bd05b6ccb447a186212a8faf85e6 /plugins/infra/emf/org.eclipse.papyrus.infra.emf/plugin.xml
parentd909f5a652495c22b61933b969eebdf72c513b24 (diff)
downloadorg.eclipse.papyrus-09f0c73e06c20481ec3b8b58c3e83798ac7c85b9.tar.gz
org.eclipse.papyrus-09f0c73e06c20481ec3b8b58c3e83798ac7c85b9.tar.xz
org.eclipse.papyrus-09f0c73e06c20481ec3b8b58c3e83798ac7c85b9.zip
402525: [Widgets / Transactions] Papyrus dialogs should be transactional
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402525 Introduce an IAtomicOperationExecutor adapter for the object being edited by the widgets to to execute complex operations on the EMF command-stack (for EObjects being edited). This command stack is understood to support nested command execution. Add the element being edited as context for the ReferenceValueFactory's creation of a new referenced object. This provides resource-set context for nested editors that need to create further new elements wherever in the model. This resource-set also can be used to look up the LabelProviderService for presentation of objects in the dialogs.
Diffstat (limited to 'plugins/infra/emf/org.eclipse.papyrus.infra.emf/plugin.xml')
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf/plugin.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf/plugin.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf/plugin.xml
index a5a77a29959..d9b6cb0f5d1 100644
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf/plugin.xml
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf/plugin.xml
@@ -57,5 +57,15 @@
</elementType>
</binding>
</extension>
+ <extension
+ point="org.eclipse.core.runtime.adapters">
+ <factory
+ adaptableType="org.eclipse.emf.ecore.EObject"
+ class="org.eclipse.papyrus.infra.emf.adapters.EObjectAdapterFactory">
+ <adapter
+ type="org.eclipse.papyrus.infra.widgets.creation.IAtomicOperationExecutor">
+ </adapter>
+ </factory>
+ </extension>
</plugin>

Back to the top