summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskovalsky2012-02-06 15:53:33 (EST)
committer mgolubev2012-02-06 15:53:33 (EST)
commitc9f3a5f5d3fd9250ae7d59562b718085b985c651 (patch)
tree453b671d4d255af4714252c45e422a7bd45da83e
parentbf4d33d4a91b3c08902229c6b512178b34b64b27 (diff)
downloadorg.eclipse.gmf-tooling-c9f3a5f5d3fd9250ae7d59562b718085b985c651.zip
org.eclipse.gmf-tooling-c9f3a5f5d3fd9250ae7d59562b718085b985c651.tar.gz
org.eclipse.gmf-tooling-c9f3a5f5d3fd9250ae7d59562b718085b985c651.tar.bz2
Intorducing GenVisualEffect's - the codegen input that bounds it all
together
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/icons/full/obj16/GenVisualEffect.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/plugin.properties10
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GMFGenItemProviderAdapterFactory.java24
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCommonBaseItemProvider.java5
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenVisualEffectItemProvider.java257
-rw-r--r--plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore9
-rw-r--r--plugins/org.eclipse.gmf.codegen/models/gmfgen.emf14
-rw-r--r--plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel9
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java9
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java188
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenVisualEffect.java180
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java11
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java64
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNodeImpl.java1
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenVisualEffectImpl.java432
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java18
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java23
17 files changed, 1236 insertions, 18 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.edit/icons/full/obj16/GenVisualEffect.gif b/plugins/org.eclipse.gmf.codegen.edit/icons/full/obj16/GenVisualEffect.gif
new file mode 100644
index 0000000..48e3cf2
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.edit/icons/full/obj16/GenVisualEffect.gif
Binary files differ
diff --git a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
index df59b94..f749129 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
+++ b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
@@ -929,3 +929,13 @@ _UI_ExpressionLabelParser_expressionContext_feature = Expression Context
_UI_ExpressionLabelParser_viewExpression_feature = View Expression
_UI_ExpressionLabelParser_editExpression_feature = Edit Expression
_UI_ExpressionLabelParser_validateExpression_feature = Validate Expression
+_UI_GenVisualEffect_type = Gen Visual Effect
+_UI_GenNode_visualEffects_feature = Visual Effects
+_UI_GenVisualEffect_pinName_feature = Pin Name
+_UI_GenVisualEffect_setterName_feature = Setter Name
+_UI_GenVisualEffect_oclExpression_feature = Ocl Expression
+_UI_GenVisualEffect_node_feature = Node
+_UI_GenVisualEffect_name_feature = Name
+_UI_GenVisualEffect_operationName_feature = Operation Name
+_UI_GenVisualEffect_operationType_feature = Operation Type
+_UI_GenVisualEffect_pinKind_feature = Pin Kind
diff --git a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GMFGenItemProviderAdapterFactory.java b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GMFGenItemProviderAdapterFactory.java
index 11aab27..64e0b3f 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GMFGenItemProviderAdapterFactory.java
+++ b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GMFGenItemProviderAdapterFactory.java
@@ -2320,6 +2320,29 @@ public class GMFGenItemProviderAdapterFactory extends GMFGenAdapterFactory imple
}
/**
+ * This keeps track of the one adapter used for all {@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected GenVisualEffectItemProvider genVisualEffectItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createGenVisualEffectAdapter() {
+ if (genVisualEffectItemProvider == null) {
+ genVisualEffectItemProvider = new GenVisualEffectItemProvider(this);
+ }
+
+ return genVisualEffectItemProvider;
+ }
+
+ /**
* This keeps track of the one adapter used for all {@link org.eclipse.gmf.codegen.gmfgen.ValueExpression} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2590,6 +2613,7 @@ public class GMFGenItemProviderAdapterFactory extends GMFGenAdapterFactory imple
if (expressionLabelParserItemProvider != null) expressionLabelParserItemProvider.dispose();
if (customParserItemProvider != null) customParserItemProvider.dispose();
if (externalParserItemProvider != null) externalParserItemProvider.dispose();
+ if (genVisualEffectItemProvider != null) genVisualEffectItemProvider.dispose();
}
} \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCommonBaseItemProvider.java b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCommonBaseItemProvider.java
index 0b7c17d..4745a31 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCommonBaseItemProvider.java
+++ b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCommonBaseItemProvider.java
@@ -378,6 +378,11 @@ public class GenCommonBaseItemProvider
(createChildParameter
(GMFGenPackage.eINSTANCE.getGenCommonBase_Behaviour(),
GMFGenFactory.eINSTANCE.createOpenDiagramBehaviour()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (GMFGenPackage.eINSTANCE.getGenCommonBase_Behaviour(),
+ GMFGenFactory.eINSTANCE.createGenVisualEffect()));
}
/**
diff --git a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenVisualEffectItemProvider.java b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenVisualEffectItemProvider.java
new file mode 100644
index 0000000..c6ecc10
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenVisualEffectItemProvider.java
@@ -0,0 +1,257 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IChildCreationExtender;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
+import org.eclipse.gmf.codegen.gmfgen.GenVisualEffect;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class GenVisualEffectItemProvider
+ extends CustomBehaviourItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public GenVisualEffectItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addNamePropertyDescriptor(object);
+ addPinKindPropertyDescriptor(object);
+ addOperationNamePropertyDescriptor(object);
+ addOperationTypePropertyDescriptor(object);
+ addOclExpressionPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GenVisualEffect_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GenVisualEffect_name_feature", "_UI_GenVisualEffect_type"),
+ GMFGenPackage.eINSTANCE.getGenVisualEffect_Name(),
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Pin Kind feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addPinKindPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GenVisualEffect_pinKind_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GenVisualEffect_pinKind_feature", "_UI_GenVisualEffect_type"),
+ GMFGenPackage.eINSTANCE.getGenVisualEffect_PinKind(),
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Operation Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addOperationNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GenVisualEffect_operationName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GenVisualEffect_operationName_feature", "_UI_GenVisualEffect_type"),
+ GMFGenPackage.eINSTANCE.getGenVisualEffect_OperationName(),
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Operation Type feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addOperationTypePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GenVisualEffect_operationType_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GenVisualEffect_operationType_feature", "_UI_GenVisualEffect_type"),
+ GMFGenPackage.eINSTANCE.getGenVisualEffect_OperationType(),
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Ocl Expression feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addOclExpressionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GenVisualEffect_oclExpression_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GenVisualEffect_oclExpression_feature", "_UI_GenVisualEffect_type"),
+ GMFGenPackage.eINSTANCE.getGenVisualEffect_OclExpression(),
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns GenVisualEffect.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/GenVisualEffect"));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected boolean shouldComposeCreationImage() {
+ return true;
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((GenVisualEffect)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_GenVisualEffect_type") :
+ getString("_UI_GenVisualEffect_type") + " " + label;
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(GenVisualEffect.class)) {
+ case GMFGenPackage.GEN_VISUAL_EFFECT__NAME:
+ case GMFGenPackage.GEN_VISUAL_EFFECT__PIN_KIND:
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_NAME:
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_TYPE:
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OCL_EXPRESSION:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+}
diff --git a/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore b/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
index fa82966..ef176cb 100644
--- a/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
+++ b/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
@@ -2350,4 +2350,13 @@
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="GenVisualEffect" eSuperTypes="#//CustomBehaviour">
+ <eOperations name="getOclExpressionString" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eOperations name="getOperationRuntimeType" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClassifier"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="pinKind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="operationName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="operationType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="oclExpression" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
</ecore:EPackage>
diff --git a/plugins/org.eclipse.gmf.codegen/models/gmfgen.emf b/plugins/org.eclipse.gmf.codegen/models/gmfgen.emf
index 24733ce..a9d0a18 100644
--- a/plugins/org.eclipse.gmf.codegen/models/gmfgen.emf
+++ b/plugins/org.eclipse.gmf.codegen/models/gmfgen.emf
@@ -19,7 +19,7 @@
@constraints("import"="http://www.eclipse.org/gmf/runtime/1.0.0/notation")
package gmfgen;
-//import "http://www.eclipse.org/emf/2002/GenModel";
+import "http://www.eclipse.org/emf/2002/Ecore";
import "platform:/plugin/org.eclipse.emf.codegen.ecore/model/GenModel.ecore";
// TODO introduce sourceRoot argument (or few of them?) to allow targets other than /src/
@@ -1624,4 +1624,14 @@ class CustomParser extends GenParserImplementation {
class ExternalParser extends GenParserImplementation {
@genmodel(documentation="Optionally, override hint value")
attr String[?] hint;
-} \ No newline at end of file
+}
+
+class GenVisualEffect extends CustomBehaviour {
+ attr String name;
+ attr String pinKind; // TODO: remove when graphdef will be accessible
+ attr String operationName; // TODO: remove when graphdef will be accessible
+ attr String operationType; // TODO: remove when graphdef will be accessible
+ attr String oclExpression;
+ op String getOclExpressionString();
+ op ecore.EClassifier getOperationRuntimeType();
+}
diff --git a/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel b/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
index 720f453..3b89dbc 100644
--- a/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
+++ b/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
@@ -1048,5 +1048,14 @@
<genClasses ecoreClass="gmfgen.ecore#//ExternalParser">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//ExternalParser/hint"/>
</genClasses>
+ <genClasses ecoreClass="gmfgen.ecore#//GenVisualEffect">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenVisualEffect/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenVisualEffect/pinKind"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenVisualEffect/operationName"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenVisualEffect/operationType"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenVisualEffect/oclExpression"/>
+ <genOperations ecoreOperation="gmfgen.ecore#//GenVisualEffect/getOclExpressionString"/>
+ <genOperations ecoreOperation="gmfgen.ecore#//GenVisualEffect/getOperationRuntimeType"/>
+ </genClasses>
</genPackages>
</genmodel:GenModel>
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java
index 66bc942..0e04339 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java
@@ -899,6 +899,15 @@ public interface GMFGenFactory extends EFactory {
ExternalParser createExternalParser();
/**
+ * Returns a new object of class '<em>Gen Visual Effect</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Gen Visual Effect</em>'.
+ * @generated
+ */
+ GenVisualEffect createGenVisualEffect();
+
+ /**
* Returns a new object of class '<em>Value Expression</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java
index e3ac1c6..54e8a8c 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java
@@ -10939,6 +10939,97 @@ public interface GMFGenPackage extends EPackage {
int EXTERNAL_PARSER_FEATURE_COUNT = GEN_PARSER_IMPLEMENTATION_FEATURE_COUNT + 1;
/**
+ * The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.impl.GenVisualEffectImpl <em>Gen Visual Effect</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GenVisualEffectImpl
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenVisualEffect()
+ * @generated
+ */
+ int GEN_VISUAL_EFFECT = 139;
+
+ /**
+ * The feature id for the '<em><b>Subject</b></em>' container reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT__SUBJECT = CUSTOM_BEHAVIOUR__SUBJECT;
+
+ /**
+ * The feature id for the '<em><b>Key</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT__KEY = CUSTOM_BEHAVIOUR__KEY;
+
+ /**
+ * The feature id for the '<em><b>Edit Policy Qualified Class Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT__EDIT_POLICY_QUALIFIED_CLASS_NAME = CUSTOM_BEHAVIOUR__EDIT_POLICY_QUALIFIED_CLASS_NAME;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT__NAME = CUSTOM_BEHAVIOUR_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Pin Kind</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT__PIN_KIND = CUSTOM_BEHAVIOUR_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Operation Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT__OPERATION_NAME = CUSTOM_BEHAVIOUR_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Operation Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT__OPERATION_TYPE = CUSTOM_BEHAVIOUR_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Ocl Expression</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT__OCL_EXPRESSION = CUSTOM_BEHAVIOUR_FEATURE_COUNT + 4;
+
+ /**
+ * The number of structural features of the '<em>Gen Visual Effect</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_VISUAL_EFFECT_FEATURE_COUNT = CUSTOM_BEHAVIOUR_FEATURE_COUNT + 5;
+
+ /**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.StandardPreferencePages <em>Standard Preference Pages</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -10946,7 +11037,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getStandardPreferencePages()
* @generated
*/
- int STANDARD_PREFERENCE_PAGES = 139;
+ int STANDARD_PREFERENCE_PAGES = 140;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.RulerUnits <em>Ruler Units</em>}' enum.
@@ -10956,7 +11047,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getRulerUnits()
* @generated
*/
- int RULER_UNITS = 140;
+ int RULER_UNITS = 141;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.Routing <em>Routing</em>}' enum.
@@ -10966,7 +11057,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getRouting()
* @generated
*/
- int ROUTING = 141;
+ int ROUTING = 142;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LineStyle <em>Line Style</em>}' enum.
@@ -10976,7 +11067,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLineStyle()
* @generated
*/
- int LINE_STYLE = 142;
+ int LINE_STYLE = 143;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.JFaceFont <em>JFace Font</em>}' enum.
@@ -10986,7 +11077,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getJFaceFont()
* @generated
*/
- int JFACE_FONT = 143;
+ int JFACE_FONT = 144;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.FontStyle <em>Font Style</em>}' enum.
@@ -10996,7 +11087,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getFontStyle()
* @generated
*/
- int FONT_STYLE = 144;
+ int FONT_STYLE = 145;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.DiagramColors <em>Diagram Colors</em>}' enum.
@@ -11006,7 +11097,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getDiagramColors()
* @generated
*/
- int DIAGRAM_COLORS = 145;
+ int DIAGRAM_COLORS = 146;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.ProviderPriority <em>Provider Priority</em>}' enum.
@@ -11016,7 +11107,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getProviderPriority()
* @generated
*/
- int PROVIDER_PRIORITY = 146;
+ int PROVIDER_PRIORITY = 147;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LinkLabelAlignment <em>Link Label Alignment</em>}' enum.
@@ -11026,7 +11117,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLinkLabelAlignment()
* @generated
*/
- int LINK_LABEL_ALIGNMENT = 147;
+ int LINK_LABEL_ALIGNMENT = 148;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LabelTextAccessMethod <em>Label Text Access Method</em>}' enum.
@@ -11036,7 +11127,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLabelTextAccessMethod()
* @generated
*/
- int LABEL_TEXT_ACCESS_METHOD = 148;
+ int LABEL_TEXT_ACCESS_METHOD = 149;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.ViewmapLayoutType <em>Viewmap Layout Type</em>}' enum.
@@ -11046,7 +11137,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getViewmapLayoutType()
* @generated
*/
- int VIEWMAP_LAYOUT_TYPE = 149;
+ int VIEWMAP_LAYOUT_TYPE = 150;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.StandardEntryKind <em>Standard Entry Kind</em>}' enum.
@@ -11056,7 +11147,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getStandardEntryKind()
* @generated
*/
- int STANDARD_ENTRY_KIND = 150;
+ int STANDARD_ENTRY_KIND = 151;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.GenSeverity <em>Gen Severity</em>}' enum.
@@ -11066,7 +11157,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenSeverity()
* @generated
*/
- int GEN_SEVERITY = 151;
+ int GEN_SEVERITY = 152;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.GenLanguage <em>Gen Language</em>}' enum.
@@ -11076,7 +11167,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenLanguage()
* @generated
*/
- int GEN_LANGUAGE = 152;
+ int GEN_LANGUAGE = 153;
/**
@@ -11087,7 +11178,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenNavigatorReferenceType()
* @generated
*/
- int GEN_NAVIGATOR_REFERENCE_TYPE = 153;
+ int GEN_NAVIGATOR_REFERENCE_TYPE = 154;
/**
@@ -11098,7 +11189,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGeneratedType()
* @generated
*/
- int GENERATED_TYPE = 154;
+ int GENERATED_TYPE = 155;
/**
@@ -17662,6 +17753,71 @@ public interface GMFGenPackage extends EPackage {
EAttribute getExternalParser_Hint();
/**
+ * Returns the meta object for class '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect <em>Gen Visual Effect</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Gen Visual Effect</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenVisualEffect
+ * @generated
+ */
+ EClass getGenVisualEffect();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getName()
+ * @see #getGenVisualEffect()
+ * @generated
+ */
+ EAttribute getGenVisualEffect_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getPinKind <em>Pin Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Pin Kind</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getPinKind()
+ * @see #getGenVisualEffect()
+ * @generated
+ */
+ EAttribute getGenVisualEffect_PinKind();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOperationName <em>Operation Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Operation Name</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOperationName()
+ * @see #getGenVisualEffect()
+ * @generated
+ */
+ EAttribute getGenVisualEffect_OperationName();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOperationType <em>Operation Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Operation Type</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOperationType()
+ * @see #getGenVisualEffect()
+ * @generated
+ */
+ EAttribute getGenVisualEffect_OperationType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOclExpression <em>Ocl Expression</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Ocl Expression</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOclExpression()
+ * @see #getGenVisualEffect()
+ * @generated
+ */
+ EAttribute getGenVisualEffect_OclExpression();
+
+ /**
* Returns the meta object for enum '{@link org.eclipse.gmf.codegen.gmfgen.StandardPreferencePages <em>Standard Preference Pages</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenVisualEffect.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenVisualEffect.java
new file mode 100644
index 0000000..854fa6d
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenVisualEffect.java
@@ -0,0 +1,180 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen;
+
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Gen Visual Effect</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getPinKind <em>Pin Kind</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOperationName <em>Operation Name</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOperationType <em>Operation Type</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOclExpression <em>Ocl Expression</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenVisualEffect()
+ * @model
+ * @generated
+ */
+public interface GenVisualEffect extends CustomBehaviour {
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenVisualEffect_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Pin Kind</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Pin Kind</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Pin Kind</em>' attribute.
+ * @see #setPinKind(String)
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenVisualEffect_PinKind()
+ * @model
+ * @generated
+ */
+ String getPinKind();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getPinKind <em>Pin Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Pin Kind</em>' attribute.
+ * @see #getPinKind()
+ * @generated
+ */
+ void setPinKind(String value);
+
+ /**
+ * Returns the value of the '<em><b>Operation Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Operation Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Operation Name</em>' attribute.
+ * @see #setOperationName(String)
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenVisualEffect_OperationName()
+ * @model
+ * @generated
+ */
+ String getOperationName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOperationName <em>Operation Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Operation Name</em>' attribute.
+ * @see #getOperationName()
+ * @generated
+ */
+ void setOperationName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Operation Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Operation Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Operation Type</em>' attribute.
+ * @see #setOperationType(String)
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenVisualEffect_OperationType()
+ * @model
+ * @generated
+ */
+ String getOperationType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOperationType <em>Operation Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Operation Type</em>' attribute.
+ * @see #getOperationType()
+ * @generated
+ */
+ void setOperationType(String value);
+
+ /**
+ * Returns the value of the '<em><b>Ocl Expression</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Ocl Expression</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Ocl Expression</em>' attribute.
+ * @see #setOclExpression(String)
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenVisualEffect_OclExpression()
+ * @model
+ * @generated
+ */
+ String getOclExpression();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect#getOclExpression <em>Ocl Expression</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Ocl Expression</em>' attribute.
+ * @see #getOclExpression()
+ * @generated
+ */
+ void setOclExpression(String value);
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @model kind="operation"
+ * @generated
+ */
+ String getOclExpressionString();
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @model kind="operation"
+ * @generated
+ */
+ EClassifier getOperationRuntimeType();
+
+} // GenVisualEffect
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java
index 40935e0..f4a7db1 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java
@@ -159,6 +159,7 @@ public class GMFGenFactoryImpl extends EFactoryImpl implements GMFGenFactory {
case GMFGenPackage.EXPRESSION_LABEL_PARSER: return createExpressionLabelParser();
case GMFGenPackage.CUSTOM_PARSER: return createCustomParser();
case GMFGenPackage.EXTERNAL_PARSER: return createExternalParser();
+ case GMFGenPackage.GEN_VISUAL_EFFECT: return createGenVisualEffect();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -1249,6 +1250,16 @@ public class GMFGenFactoryImpl extends EFactoryImpl implements GMFGenFactory {
* <!-- end-user-doc -->
* @generated
*/
+ public GenVisualEffect createGenVisualEffect() {
+ GenVisualEffectImpl genVisualEffect = new GenVisualEffectImpl();
+ return genVisualEffect;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public StandardPreferencePages createStandardPreferencePagesFromString(EDataType eDataType, String initialValue) {
StandardPreferencePages result = StandardPreferencePages.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java
index dd4f873..e544f42 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java
@@ -1024,6 +1024,13 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
* <!-- end-user-doc -->
* @generated
*/
+ private EClass genVisualEffectEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
private EEnum standardPreferencePagesEEnum = null;
/**
@@ -7144,6 +7151,63 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
* <!-- end-user-doc -->
* @generated
*/
+ public EClass getGenVisualEffect() {
+ if (genVisualEffectEClass == null) {
+ genVisualEffectEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(GMFGenPackage.eNS_URI).getEClassifiers().get(155);
+ }
+ return genVisualEffectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getGenVisualEffect_Name() {
+ return (EAttribute)getGenVisualEffect().getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getGenVisualEffect_PinKind() {
+ return (EAttribute)getGenVisualEffect().getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getGenVisualEffect_OperationName() {
+ return (EAttribute)getGenVisualEffect().getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getGenVisualEffect_OperationType() {
+ return (EAttribute)getGenVisualEffect().getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getGenVisualEffect_OclExpression() {
+ return (EAttribute)getGenVisualEffect().getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EEnum getStandardPreferencePages() {
if (standardPreferencePagesEEnum == null) {
standardPreferencePagesEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(GMFGenPackage.eNS_URI).getEClassifiers().get(6);
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNodeImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNodeImpl.java
index 7c5a921..f721ee0 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNodeImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNodeImpl.java
@@ -31,6 +31,7 @@ import org.eclipse.gmf.codegen.gmfgen.GenLink;
import org.eclipse.gmf.codegen.gmfgen.GenLinkEnd;
import org.eclipse.gmf.codegen.gmfgen.GenNode;
import org.eclipse.gmf.codegen.gmfgen.GenNodeLabel;
+import org.eclipse.gmf.codegen.gmfgen.GenVisualEffect;
import org.eclipse.gmf.codegen.gmfgen.TypeLinkModelFacet;
import org.eclipse.gmf.codegen.gmfgen.TypeModelFacet;
import org.eclipse.gmf.internal.codegen.util.Extras;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenVisualEffectImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenVisualEffectImpl.java
new file mode 100644
index 0000000..95ed766
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenVisualEffectImpl.java
@@ -0,0 +1,432 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
+import org.eclipse.gmf.codegen.gmfgen.GenVisualEffect;
+import org.eclipse.gmf.internal.common.codegen.Conversions;
+import org.eclipse.gmf.internal.xpand.util.ParserException;
+import org.eclipse.ocl.ecore.OCL;
+import org.eclipse.ocl.helper.OCLHelper;
+import org.eclipse.ocl.types.TypeType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Gen Visual Effect</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.impl.GenVisualEffectImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.impl.GenVisualEffectImpl#getPinKind <em>Pin Kind</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.impl.GenVisualEffectImpl#getOperationName <em>Operation Name</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.impl.GenVisualEffectImpl#getOperationType <em>Operation Type</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.impl.GenVisualEffectImpl#getOclExpression <em>Ocl Expression</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenVisualEffectImpl extends CustomBehaviourImpl implements GenVisualEffect {
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPinKind() <em>Pin Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPinKind()
+ * @generated
+ * @ordered
+ */
+ protected static final String PIN_KIND_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPinKind() <em>Pin Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPinKind()
+ * @generated
+ * @ordered
+ */
+ protected String pinKind = PIN_KIND_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOperationName() <em>Operation Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOperationName()
+ * @generated
+ * @ordered
+ */
+ protected static final String OPERATION_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOperationName() <em>Operation Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOperationName()
+ * @generated
+ * @ordered
+ */
+ protected String operationName = OPERATION_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOperationType() <em>Operation Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOperationType()
+ * @generated
+ * @ordered
+ */
+ protected static final String OPERATION_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOperationType() <em>Operation Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOperationType()
+ * @generated
+ * @ordered
+ */
+ protected String operationType = OPERATION_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOclExpression() <em>Ocl Expression</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOclExpression()
+ * @generated
+ * @ordered
+ */
+ protected static final String OCL_EXPRESSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOclExpression() <em>Ocl Expression</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOclExpression()
+ * @generated
+ * @ordered
+ */
+ protected String oclExpression = OCL_EXPRESSION_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected GenVisualEffectImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return GMFGenPackage.eINSTANCE.getGenVisualEffect();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GMFGenPackage.GEN_VISUAL_EFFECT__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getPinKind() {
+ return pinKind;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPinKind(String newPinKind) {
+ String oldPinKind = pinKind;
+ pinKind = newPinKind;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GMFGenPackage.GEN_VISUAL_EFFECT__PIN_KIND, oldPinKind, pinKind));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOperationName() {
+ return operationName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOperationName(String newOperationName) {
+ String oldOperationName = operationName;
+ operationName = newOperationName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_NAME, oldOperationName, operationName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOperationType() {
+ return operationType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOperationType(String newOperationType) {
+ String oldOperationType = operationType;
+ operationType = newOperationType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_TYPE, oldOperationType, operationType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOclExpression() {
+ return oclExpression;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOclExpression(String newOclExpression) {
+ String oldOclExpression = oclExpression;
+ oclExpression = newOclExpression;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GMFGenPackage.GEN_VISUAL_EFFECT__OCL_EXPRESSION, oldOclExpression, oclExpression));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated NOT
+ */
+ public String getOclExpressionString() {
+ return Conversions.toStringLiteral(getOclExpression());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated NOT
+ */
+ public EClassifier getOperationRuntimeType() {
+ OCL ocl = OCL.newInstance();
+ OCLHelper helper = ocl.createOCLHelper();
+ helper.setContext(EcorePackage.eINSTANCE.getEClass());
+ org.eclipse.ocl.expressions.OCLExpression<EClassifier> expr = null;
+
+// String opType = getOperationType();
+// if (opType.trim().startsWith("Tuple")){
+// opType = "let t: Sequence(" + opType +") = Sequence{} in t->first()";
+// opType = "let a : " + opType + " in a";
+// }
+
+ String expressionString = "let t: Sequence(" + getOperationType() +") = Sequence{} in t->first()";
+
+ try {
+ expr = helper.createQuery(expressionString);
+ } catch (org.eclipse.ocl.ParserException e) {
+ throw new RuntimeException(e);
+ }
+ return expr.getType();
+//
+// EClassifier exprType = expr.getType();
+//// if (exprType instanceof TypeType<?, ?>){
+//// TypeType<?, ?> typeType = (TypeType<?, ?>)exprType;
+//// exprType = (EClassifier)typeType.getReferredType();
+//// }
+// EClassifier result = exprType instanceof EClassifier ? (EClassifier)exprType : null;
+// System.err.println("About to return: " + result);
+// return result;
+
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_VISUAL_EFFECT__NAME:
+ return getName();
+ case GMFGenPackage.GEN_VISUAL_EFFECT__PIN_KIND:
+ return getPinKind();
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_NAME:
+ return getOperationName();
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_TYPE:
+ return getOperationType();
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OCL_EXPRESSION:
+ return getOclExpression();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_VISUAL_EFFECT__NAME:
+ setName((String)newValue);
+ return;
+ case GMFGenPackage.GEN_VISUAL_EFFECT__PIN_KIND:
+ setPinKind((String)newValue);
+ return;
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_NAME:
+ setOperationName((String)newValue);
+ return;
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_TYPE:
+ setOperationType((String)newValue);
+ return;
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OCL_EXPRESSION:
+ setOclExpression((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_VISUAL_EFFECT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case GMFGenPackage.GEN_VISUAL_EFFECT__PIN_KIND:
+ setPinKind(PIN_KIND_EDEFAULT);
+ return;
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_NAME:
+ setOperationName(OPERATION_NAME_EDEFAULT);
+ return;
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_TYPE:
+ setOperationType(OPERATION_TYPE_EDEFAULT);
+ return;
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OCL_EXPRESSION:
+ setOclExpression(OCL_EXPRESSION_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_VISUAL_EFFECT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case GMFGenPackage.GEN_VISUAL_EFFECT__PIN_KIND:
+ return PIN_KIND_EDEFAULT == null ? pinKind != null : !PIN_KIND_EDEFAULT.equals(pinKind);
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_NAME:
+ return OPERATION_NAME_EDEFAULT == null ? operationName != null : !OPERATION_NAME_EDEFAULT.equals(operationName);
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OPERATION_TYPE:
+ return OPERATION_TYPE_EDEFAULT == null ? operationType != null : !OPERATION_TYPE_EDEFAULT.equals(operationType);
+ case GMFGenPackage.GEN_VISUAL_EFFECT__OCL_EXPRESSION:
+ return OCL_EXPRESSION_EDEFAULT == null ? oclExpression != null : !OCL_EXPRESSION_EDEFAULT.equals(oclExpression);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", pinKind: ");
+ result.append(pinKind);
+ result.append(", operationName: ");
+ result.append(operationName);
+ result.append(", operationType: ");
+ result.append(operationType);
+ result.append(", oclExpression: ");
+ result.append(oclExpression);
+ result.append(')');
+ return result.toString();
+ }
+
+} //GenVisualEffectImpl
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java
index cd9b062..cce3d34 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java
@@ -625,6 +625,10 @@ public class GMFGenAdapterFactory extends AdapterFactoryImpl {
return createExternalParserAdapter();
}
@Override
+ public Adapter caseGenVisualEffect(GenVisualEffect object) {
+ return createGenVisualEffectAdapter();
+ }
+ @Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
@@ -2549,6 +2553,20 @@ public class GMFGenAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.GenVisualEffect <em>Gen Visual Effect</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenVisualEffect
+ * @generated
+ */
+ public Adapter createGenVisualEffectAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.GenRuleBase <em>Gen Rule Base</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java
index d846d51..0a7c89e 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java
@@ -1056,6 +1056,14 @@ public class GMFGenSwitch<T> extends Switch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
+ case GMFGenPackage.GEN_VISUAL_EFFECT: {
+ GenVisualEffect genVisualEffect = (GenVisualEffect)theEObject;
+ T result = caseGenVisualEffect(genVisualEffect);
+ if (result == null) result = caseCustomBehaviour(genVisualEffect);
+ if (result == null) result = caseBehaviour(genVisualEffect);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
default: return defaultCase(theEObject);
}
}
@@ -3101,6 +3109,21 @@ public class GMFGenSwitch<T> extends Switch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Visual Effect</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen Visual Effect</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenVisualEffect(GenVisualEffect object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Gen Rule Base</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;