Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2017-04-24 12:24:41 +0000
committerGerrit Code Review @ Eclipse.org2017-05-02 12:02:41 +0000
commit9d63f5553a880b5988475185999a6162af2f9490 (patch)
tree171196731fdbb5646bbaa8d68b54a29a591a4539 /plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui
parent1b6e74900a0cc0ce184f2c653a4c3d061760cd36 (diff)
downloadorg.eclipse.papyrus-9d63f5553a880b5988475185999a6162af2f9490.tar.gz
org.eclipse.papyrus-9d63f5553a880b5988475185999a6162af2f9490.tar.xz
org.eclipse.papyrus-9d63f5553a880b5988475185999a6162af2f9490.zip
Bug 507932: The XText integration for Direct Edition delete the editing
elements when deleting an empty pair of chars, such as "" https://bugs.eclipse.org/bugs/show_bug.cgi?id=507932 - Modify the edit strategy provider because this one is not correctly corresponding with the inline editor. For the pair elements, in our case, the 'delete' key was not correctly interpreted and the 'Delete From Model' command was interpreted. Change-Id: Ib3a0a1930bf8ecfa8361a3a720f08809fdeb96e6 Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui')
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyUiModule.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyUiModule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyUiModule.java
index 44364bf175c..d3d1fb28911 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyUiModule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyUiModule.java
@@ -13,7 +13,9 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.textedit.property.xtext.ui;
+import org.eclipse.papyrus.uml.xtext.integration.PapyrusDefaultAutoEditStrategyProvider;
import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider;
/**
* Use this class to register components to be used within the IDE.
@@ -22,4 +24,14 @@ public class UmlPropertyUiModule extends org.eclipse.papyrus.uml.textedit.proper
public UmlPropertyUiModule(AbstractUIPlugin plugin) {
super(plugin);
}
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.xtext.ui.DefaultUiModule#bindAbstractEditStrategyProvider()
+ */
+ @Override
+ public Class<? extends AbstractEditStrategyProvider> bindAbstractEditStrategyProvider() {
+ return PapyrusDefaultAutoEditStrategyProvider.class;
+ }
}

Back to the top