Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNathalie Lepine2013-09-02 13:15:45 +0000
committerNathalie Lepine2013-09-02 13:15:45 +0000
commit92a9be516feadcce4da73410008d6d1cac5459de (patch)
treefdd0eea5d3048201f35c30064c0f5a787530aa7b /tests
parent81e6c447eff49deb1df37f6d59f5fea87edce27f (diff)
downloadorg.eclipse.eef-92a9be516feadcce4da73410008d6d1cac5459de.tar.gz
org.eclipse.eef-92a9be516feadcce4da73410008d6d1cac5459de.tar.xz
org.eclipse.eef-92a9be516feadcce4da73410008d6d1cac5459de.zip
regen without TypeEReferencesPEContext
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.emf.eef.tests.nonreg.edit/src-gen/org/eclipse/emf/eef/eefnr/components/LinkEReferenceViewerSamplePropertiesEditionComponent.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/org.eclipse.emf.eef.tests.nonreg.edit/src-gen/org/eclipse/emf/eef/eefnr/components/LinkEReferenceViewerSamplePropertiesEditionComponent.java b/tests/org.eclipse.emf.eef.tests.nonreg.edit/src-gen/org/eclipse/emf/eef/eefnr/components/LinkEReferenceViewerSamplePropertiesEditionComponent.java
index f944dde5c..7644f607c 100644
--- a/tests/org.eclipse.emf.eef.tests.nonreg.edit/src-gen/org/eclipse/emf/eef/eefnr/components/LinkEReferenceViewerSamplePropertiesEditionComponent.java
+++ b/tests/org.eclipse.emf.eef.tests.nonreg.edit/src-gen/org/eclipse/emf/eef/eefnr/components/LinkEReferenceViewerSamplePropertiesEditionComponent.java
@@ -17,6 +17,7 @@ import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.common.util.WrappedException;
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
@@ -41,7 +42,8 @@ import org.eclipse.emf.eef.runtime.api.notify.NotificationFilter;
import org.eclipse.emf.eef.runtime.context.PropertiesEditingContext;
import org.eclipse.emf.eef.runtime.context.impl.EObjectPropertiesEditionContext;
-import org.eclipse.emf.eef.runtime.context.impl.TypedEReferencePropertiesEditingContext;
+import org.eclipse.emf.eef.runtime.context.impl.EReferencePropertiesEditionContext;
+import org.eclipse.emf.eef.runtime.context.impl.EReferencePropertiesEditionContext.InstanciableTypeFilter;
import org.eclipse.emf.eef.runtime.impl.components.SinglePartPropertiesEditingComponent;
@@ -208,7 +210,12 @@ public class LinkEReferenceViewerSamplePropertiesEditionComponent extends Single
}
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
TextSample eObject = EefnrFactory.eINSTANCE.createTextSample();
- TypedEReferencePropertiesEditingContext context = new TypedEReferencePropertiesEditingContext(editingContext, this, linkereferenceviewerRequiredPropertyCreateSettings, EefnrPackage.Literals.TEXT_SAMPLE, editingContext.getAdapterFactory());
+ EReferencePropertiesEditionContext context = new EReferencePropertiesEditionContext(editingContext, this, linkereferenceviewerRequiredPropertyCreateSettings, editingContext.getAdapterFactory());
+ context.addInstanciableTypeFilter(new InstanciableTypeFilter() {
+ public boolean select(EClass instanciableType) {
+ return EefnrPackage.Literals.TEXT_SAMPLE == instanciableType;
+ }
+ });
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
@@ -234,7 +241,12 @@ public class LinkEReferenceViewerSamplePropertiesEditionComponent extends Single
}
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
TextSample eObject = EefnrFactory.eINSTANCE.createTextSample();
- TypedEReferencePropertiesEditingContext context = new TypedEReferencePropertiesEditingContext(editingContext, this, linkereferenceviewerOptionalPropertyCreateSettings, EefnrPackage.Literals.TEXT_SAMPLE, editingContext.getAdapterFactory());
+ EReferencePropertiesEditionContext context = new EReferencePropertiesEditionContext(editingContext, this, linkereferenceviewerOptionalPropertyCreateSettings, editingContext.getAdapterFactory());
+ context.addInstanciableTypeFilter(new InstanciableTypeFilter() {
+ public boolean select(EClass instanciableType) {
+ return EefnrPackage.Literals.TEXT_SAMPLE == instanciableType;
+ }
+ });
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);

Back to the top