Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2011-05-12 13:17:08 +0000
committervlorenzo2011-05-12 13:17:08 +0000
commit2fde462241e2a474269dc40b313a457f67b48bfe (patch)
tree51175cf683dd9fc41328e1839899b2f2ac98ff68 /incoming
parent64dfa03dafd66196c9f7749a02a6c0460ef12268 (diff)
downloadorg.eclipse.papyrus-2fde462241e2a474269dc40b313a457f67b48bfe.tar.gz
org.eclipse.papyrus-2fde462241e2a474269dc40b313a457f67b48bfe.tar.xz
org.eclipse.papyrus-2fde462241e2a474269dc40b313a457f67b48bfe.zip
NEW - bug 344602: [Table Editor] Papyrus Table Editor should use the ElementEditService
https://bugs.eclipse.org/bugs/show_bug.cgi?id=344602 Add some emf-facet elements in the test
Diffstat (limited to 'incoming')
-rw-r--r--incoming/org.eclipse.papyrus.table.common/src/org/eclipse/papyrus/table/common/factory/PapyrusCommandFactory.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/incoming/org.eclipse.papyrus.table.common/src/org/eclipse/papyrus/table/common/factory/PapyrusCommandFactory.java b/incoming/org.eclipse.papyrus.table.common/src/org/eclipse/papyrus/table/common/factory/PapyrusCommandFactory.java
index 033d498c8a2..c1d86b6eaab 100644
--- a/incoming/org.eclipse.papyrus.table.common/src/org/eclipse/papyrus/table/common/factory/PapyrusCommandFactory.java
+++ b/incoming/org.eclipse.papyrus.table.common/src/org/eclipse/papyrus/table/common/factory/PapyrusCommandFactory.java
@@ -22,7 +22,12 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.facet.infra.browser.custom.AttributeView;
+import org.eclipse.emf.facet.infra.browser.custom.CustomViewFeature;
import org.eclipse.emf.facet.infra.browser.custom.MetamodelView;
+import org.eclipse.emf.facet.infra.browser.custom.ReferenceView;
+import org.eclipse.emf.facet.infra.browser.custom.StaticFeatureValue;
+import org.eclipse.emf.facet.infra.browser.custom.TypeView;
import org.eclipse.emf.facet.infra.facet.Facet;
import org.eclipse.emf.facet.widgets.celleditors.internal.DefaultCommandFactory;
import org.eclipse.emf.facet.widgets.nattable.instance.tableinstance.Column;
@@ -104,6 +109,16 @@ public class PapyrusCommandFactory extends DefaultCommandFactory {
return true;
} else if(owner instanceof Customization) {
return true;
+ } else if(owner instanceof TypeView){
+ return true;
+ }else if(owner instanceof ReferenceView){
+ return true;
+ }else if(owner instanceof AttributeView){
+ return true;
+ }else if(owner instanceof CustomViewFeature){
+ return true;
+ }else if(owner instanceof StaticFeatureValue){
+ return true;
}
//we add this test,because, it is possible that we forget some emf-facet elements
String className = owner.getClass().getCanonicalName();

Back to the top