Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.gmf.codegen/META-INF/MANIFEST.MF2
-rw-r--r--plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore6
-rw-r--r--plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel2
-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.java121
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLanguage.java29
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLiteralExpressionProvider.java25
-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.java169
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenLiteralExpressionProviderImpl.java48
-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.java22
12 files changed, 279 insertions, 183 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/META-INF/MANIFEST.MF b/plugins/org.eclipse.gmf.codegen/META-INF/MANIFEST.MF
index 963048026..b85b1573f 100644
--- a/plugins/org.eclipse.gmf.codegen/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.gmf.codegen/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.gmf.codegen; singleton:=true
-Bundle-Version: 2.1.0.qualifier
+Bundle-Version: 2.2.0.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.gmf.codegen.gmfgen,
diff --git a/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore b/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
index c330ef40e..3323da886 100644
--- a/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
+++ b/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
@@ -1763,11 +1763,17 @@
eType="#//GenLanguage"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="className" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="GenLiteralExpressionProvider" eSuperTypes="#//GenExpressionProviderBase">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="GenLiteralExpressionProvider#getLanguage() == GenLanguage.LITERAL"/>
+ </eAnnotations>
+ </eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="GenLanguage">
<eLiterals name="ocl"/>
<eLiterals name="java" value="1"/>
<eLiterals name="regexp" value="2"/>
<eLiterals name="nregexp" value="3"/>
+ <eLiterals name="literal" value="4"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GenDomainModelNavigator" abstract="true"
interface="true">
diff --git a/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel b/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
index fc29bb1fb..a89474b49 100644
--- a/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
+++ b/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
@@ -134,6 +134,7 @@
<genEnumLiterals ecoreEnumLiteral="gmfgen.ecore#//GenLanguage/java"/>
<genEnumLiterals ecoreEnumLiteral="gmfgen.ecore#//GenLanguage/regexp"/>
<genEnumLiterals ecoreEnumLiteral="gmfgen.ecore#//GenLanguage/nregexp"/>
+ <genEnumLiterals ecoreEnumLiteral="gmfgen.ecore#//GenLanguage/literal"/>
</genEnums>
<genEnums ecoreEnum="gmfgen.ecore#//GenNavigatorReferenceType">
<genEnumLiterals ecoreEnumLiteral="gmfgen.ecore#//GenNavigatorReferenceType/children"/>
@@ -805,6 +806,7 @@
<genParameters ecoreParameter="gmfgen.ecore#//GenExpressionInterpreter/getExpressionAccessor/expression"/>
</genOperations>
</genClasses>
+ <genClasses ecoreClass="gmfgen.ecore#//GenLiteralExpressionProvider"/>
<genClasses image="false" ecoreClass="gmfgen.ecore#//GenDomainModelNavigator">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenDomainModelNavigator/generateDomainModelNavigator"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenDomainModelNavigator/domainContentExtensionID"/>
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 331f43d53..8311bed66 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
@@ -611,6 +611,15 @@ public interface GMFGenFactory extends EFactory {
GenExpressionInterpreter createGenExpressionInterpreter();
/**
+ * Returns a new object of class '<em>Gen Literal Expression Provider</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Gen Literal Expression Provider</em>'.
+ * @generated
+ */
+ GenLiteralExpressionProvider createGenLiteralExpressionProvider();
+
+ /**
* Returns a new object of class '<em>Gen Navigator</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 8b98fe57e..c10de3c41 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
@@ -8290,6 +8290,43 @@ public interface GMFGenPackage extends EPackage {
int GEN_EXPRESSION_INTERPRETER_FEATURE_COUNT = GEN_EXPRESSION_PROVIDER_BASE_FEATURE_COUNT + 2;
/**
+ * The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.impl.GenLiteralExpressionProviderImpl <em>Gen Literal Expression Provider</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GenLiteralExpressionProviderImpl
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenLiteralExpressionProvider()
+ * @generated
+ */
+ int GEN_LITERAL_EXPRESSION_PROVIDER = 100;
+
+ /**
+ * The feature id for the '<em><b>Expressions</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_LITERAL_EXPRESSION_PROVIDER__EXPRESSIONS = GEN_EXPRESSION_PROVIDER_BASE__EXPRESSIONS;
+
+ /**
+ * The feature id for the '<em><b>Container</b></em>' container reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_LITERAL_EXPRESSION_PROVIDER__CONTAINER = GEN_EXPRESSION_PROVIDER_BASE__CONTAINER;
+
+ /**
+ * The number of structural features of the '<em>Gen Literal Expression Provider</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_LITERAL_EXPRESSION_PROVIDER_FEATURE_COUNT = GEN_EXPRESSION_PROVIDER_BASE_FEATURE_COUNT + 0;
+
+ /**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.GenDomainModelNavigator <em>Gen Domain Model Navigator</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -8297,7 +8334,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenDomainModelNavigator()
* @generated
*/
- int GEN_DOMAIN_MODEL_NAVIGATOR = 100;
+ int GEN_DOMAIN_MODEL_NAVIGATOR = 101;
/**
* The feature id for the '<em><b>Generate Domain Model Navigator</b></em>' attribute.
@@ -8388,7 +8425,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenNavigator()
* @generated
*/
- int GEN_NAVIGATOR = 101;
+ int GEN_NAVIGATOR = 102;
/**
* The feature id for the '<em><b>Generate Domain Model Navigator</b></em>' attribute.
@@ -8641,7 +8678,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenNavigatorChildReference()
* @generated
*/
- int GEN_NAVIGATOR_CHILD_REFERENCE = 102;
+ int GEN_NAVIGATOR_CHILD_REFERENCE = 103;
/**
* The feature id for the '<em><b>Navigator</b></em>' container reference.
@@ -8723,7 +8760,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenNavigatorPath()
* @generated
*/
- int GEN_NAVIGATOR_PATH = 103;
+ int GEN_NAVIGATOR_PATH = 104;
/**
* The feature id for the '<em><b>Segments</b></em>' containment reference list.
@@ -8751,7 +8788,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenNavigatorPathSegment()
* @generated
*/
- int GEN_NAVIGATOR_PATH_SEGMENT = 104;
+ int GEN_NAVIGATOR_PATH_SEGMENT = 105;
/**
* The feature id for the '<em><b>Path</b></em>' container reference.
@@ -8797,7 +8834,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenPropertySheet()
* @generated
*/
- int GEN_PROPERTY_SHEET = 105;
+ int GEN_PROPERTY_SHEET = 106;
/**
* The feature id for the '<em><b>Editor Gen</b></em>' container reference.
@@ -8870,7 +8907,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenPropertyTab()
* @generated
*/
- int GEN_PROPERTY_TAB = 106;
+ int GEN_PROPERTY_TAB = 107;
/**
* The feature id for the '<em><b>Sheet</b></em>' container reference.
@@ -8916,7 +8953,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenStandardPropertyTab()
* @generated
*/
- int GEN_STANDARD_PROPERTY_TAB = 107;
+ int GEN_STANDARD_PROPERTY_TAB = 108;
/**
* The feature id for the '<em><b>Sheet</b></em>' container reference.
@@ -8962,7 +8999,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenCustomPropertyTab()
* @generated
*/
- int GEN_CUSTOM_PROPERTY_TAB = 108;
+ int GEN_CUSTOM_PROPERTY_TAB = 109;
/**
* The feature id for the '<em><b>Sheet</b></em>' container reference.
@@ -9026,7 +9063,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenPropertyTabFilter()
* @generated
*/
- int GEN_PROPERTY_TAB_FILTER = 109;
+ int GEN_PROPERTY_TAB_FILTER = 110;
/**
* The feature id for the '<em><b>Tab</b></em>' container reference.
@@ -9054,7 +9091,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getTypeTabFilter()
* @generated
*/
- int TYPE_TAB_FILTER = 110;
+ int TYPE_TAB_FILTER = 111;
/**
* The feature id for the '<em><b>Tab</b></em>' container reference.
@@ -9100,7 +9137,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getCustomTabFilter()
* @generated
*/
- int CUSTOM_TAB_FILTER = 111;
+ int CUSTOM_TAB_FILTER = 112;
/**
* The feature id for the '<em><b>Tab</b></em>' container reference.
@@ -9137,7 +9174,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenContributionItem()
* @generated
*/
- int GEN_CONTRIBUTION_ITEM = 112;
+ int GEN_CONTRIBUTION_ITEM = 113;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9174,7 +9211,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenSharedContributionItem()
* @generated
*/
- int GEN_SHARED_CONTRIBUTION_ITEM = 113;
+ int GEN_SHARED_CONTRIBUTION_ITEM = 114;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9220,7 +9257,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenGroupMarker()
* @generated
*/
- int GEN_GROUP_MARKER = 114;
+ int GEN_GROUP_MARKER = 115;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9266,7 +9303,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenSeparator()
* @generated
*/
- int GEN_SEPARATOR = 115;
+ int GEN_SEPARATOR = 116;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9312,7 +9349,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenActionFactoryContributionItem()
* @generated
*/
- int GEN_ACTION_FACTORY_CONTRIBUTION_ITEM = 116;
+ int GEN_ACTION_FACTORY_CONTRIBUTION_ITEM = 117;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9358,7 +9395,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenContributionManager()
* @generated
*/
- int GEN_CONTRIBUTION_MANAGER = 117;
+ int GEN_CONTRIBUTION_MANAGER = 118;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9413,7 +9450,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenMenuManager()
* @generated
*/
- int GEN_MENU_MANAGER = 118;
+ int GEN_MENU_MANAGER = 119;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9477,7 +9514,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenToolBarManager()
* @generated
*/
- int GEN_TOOL_BAR_MANAGER = 119;
+ int GEN_TOOL_BAR_MANAGER = 120;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9532,7 +9569,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenApplication()
* @generated
*/
- int GEN_APPLICATION = 120;
+ int GEN_APPLICATION = 121;
/**
* The feature id for the '<em><b>Editor Gen</b></em>' container reference.
@@ -9677,7 +9714,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getStandardPreferencePages()
* @generated
*/
- int STANDARD_PREFERENCE_PAGES = 121;
+ int STANDARD_PREFERENCE_PAGES = 122;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.RulerUnits <em>Ruler Units</em>}' enum.
@@ -9687,7 +9724,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getRulerUnits()
* @generated
*/
- int RULER_UNITS = 122;
+ int RULER_UNITS = 123;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.Routing <em>Routing</em>}' enum.
@@ -9697,7 +9734,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getRouting()
* @generated
*/
- int ROUTING = 123;
+ int ROUTING = 124;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LineStyle <em>Line Style</em>}' enum.
@@ -9707,7 +9744,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLineStyle()
* @generated
*/
- int LINE_STYLE = 124;
+ int LINE_STYLE = 125;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.JFaceFont <em>JFace Font</em>}' enum.
@@ -9717,7 +9754,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getJFaceFont()
* @generated
*/
- int JFACE_FONT = 125;
+ int JFACE_FONT = 126;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.FontStyle <em>Font Style</em>}' enum.
@@ -9727,7 +9764,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getFontStyle()
* @generated
*/
- int FONT_STYLE = 126;
+ int FONT_STYLE = 127;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.DiagramColors <em>Diagram Colors</em>}' enum.
@@ -9737,7 +9774,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getDiagramColors()
* @generated
*/
- int DIAGRAM_COLORS = 127;
+ int DIAGRAM_COLORS = 128;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.ProviderPriority <em>Provider Priority</em>}' enum.
@@ -9747,7 +9784,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getProviderPriority()
* @generated
*/
- int PROVIDER_PRIORITY = 128;
+ int PROVIDER_PRIORITY = 129;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LinkLabelAlignment <em>Link Label Alignment</em>}' enum.
@@ -9757,7 +9794,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLinkLabelAlignment()
* @generated
*/
- int LINK_LABEL_ALIGNMENT = 129;
+ int LINK_LABEL_ALIGNMENT = 130;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LabelTextAccessMethod <em>Label Text Access Method</em>}' enum.
@@ -9767,7 +9804,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLabelTextAccessMethod()
* @generated
*/
- int LABEL_TEXT_ACCESS_METHOD = 130;
+ int LABEL_TEXT_ACCESS_METHOD = 131;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.ViewmapLayoutType <em>Viewmap Layout Type</em>}' enum.
@@ -9777,7 +9814,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getViewmapLayoutType()
* @generated
*/
- int VIEWMAP_LAYOUT_TYPE = 131;
+ int VIEWMAP_LAYOUT_TYPE = 132;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.StandardEntryKind <em>Standard Entry Kind</em>}' enum.
@@ -9787,7 +9824,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getStandardEntryKind()
* @generated
*/
- int STANDARD_ENTRY_KIND = 132;
+ int STANDARD_ENTRY_KIND = 133;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.GenSeverity <em>Gen Severity</em>}' enum.
@@ -9797,7 +9834,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenSeverity()
* @generated
*/
- int GEN_SEVERITY = 133;
+ int GEN_SEVERITY = 134;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.GenLanguage <em>Gen Language</em>}' enum.
@@ -9807,7 +9844,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenLanguage()
* @generated
*/
- int GEN_LANGUAGE = 134;
+ int GEN_LANGUAGE = 135;
/**
@@ -9818,7 +9855,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenNavigatorReferenceType()
* @generated
*/
- int GEN_NAVIGATOR_REFERENCE_TYPE = 135;
+ int GEN_NAVIGATOR_REFERENCE_TYPE = 136;
/**
@@ -9829,7 +9866,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGeneratedType()
* @generated
*/
- int GENERATED_TYPE = 136;
+ int GENERATED_TYPE = 137;
/**
@@ -14628,6 +14665,16 @@ public interface GMFGenPackage extends EPackage {
EAttribute getGenExpressionInterpreter_ClassName();
/**
+ * Returns the meta object for class '{@link org.eclipse.gmf.codegen.gmfgen.GenLiteralExpressionProvider <em>Gen Literal Expression Provider</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Gen Literal Expression Provider</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenLiteralExpressionProvider
+ * @generated
+ */
+ EClass getGenLiteralExpressionProvider();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.gmf.codegen.gmfgen.GenDomainModelNavigator <em>Gen Domain Model Navigator</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLanguage.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLanguage.java
index 9027f9d1c..f3a2ffac9 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLanguage.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLanguage.java
@@ -2,7 +2,7 @@
* <copyright>
* </copyright>
*
- * $Id: GenLanguage.java,v 1.2 2007/03/14 14:39:36 atikhomirov Exp $
+ * $Id: GenLanguage.java,v 1.3 2008/07/01 11:40:16 atikhomirov Exp $
*/
package org.eclipse.gmf.codegen.gmfgen;
@@ -58,7 +58,15 @@ public enum GenLanguage implements Enumerator
* @generated
* @ordered
*/
- NREGEXP_LITERAL(3, "nregexp", "nregexp");
+ NREGEXP_LITERAL(3, "nregexp", "nregexp"), /**
+ * The '<em><b>Literal</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #LITERAL
+ * @generated
+ * @ordered
+ */
+ LITERAL_LITERAL(4, "literal", "literal");
/**
* The '<em><b>Ocl</b></em>' literal value.
* <!-- begin-user-doc -->
@@ -120,6 +128,21 @@ public enum GenLanguage implements Enumerator
public static final int NREGEXP = 3;
/**
+ * The '<em><b>Literal</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Literal</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #LITERAL_LITERAL
+ * @model name="literal"
+ * @generated
+ * @ordered
+ */
+ public static final int LITERAL = 4;
+
+ /**
* An array of all the '<em><b>Gen Language</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -131,6 +154,7 @@ public enum GenLanguage implements Enumerator
JAVA_LITERAL,
REGEXP_LITERAL,
NREGEXP_LITERAL,
+ LITERAL_LITERAL,
};
/**
@@ -185,6 +209,7 @@ public enum GenLanguage implements Enumerator
case JAVA: return JAVA_LITERAL;
case REGEXP: return REGEXP_LITERAL;
case NREGEXP: return NREGEXP_LITERAL;
+ case LITERAL: return LITERAL_LITERAL;
}
return null;
}
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLiteralExpressionProvider.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLiteralExpressionProvider.java
new file mode 100644
index 000000000..61751f752
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenLiteralExpressionProvider.java
@@ -0,0 +1,25 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Gen Literal Expression Provider</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * GenLiteralExpressionProvider#getLanguage() == GenLanguage.LITERAL
+ * <!-- end-model-doc -->
+ *
+ *
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenLiteralExpressionProvider()
+ * @model
+ * @generated
+ */
+public interface GenLiteralExpressionProvider extends GenExpressionProviderBase {
+} // GenLiteralExpressionProvider
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 80e824f79..d5ff2c20f 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
@@ -127,6 +127,7 @@ public class GMFGenFactoryImpl extends EFactoryImpl implements GMFGenFactory {
case GMFGenPackage.GEN_EXPRESSION_PROVIDER_CONTAINER: return createGenExpressionProviderContainer();
case GMFGenPackage.GEN_JAVA_EXPRESSION_PROVIDER: return createGenJavaExpressionProvider();
case GMFGenPackage.GEN_EXPRESSION_INTERPRETER: return createGenExpressionInterpreter();
+ case GMFGenPackage.GEN_LITERAL_EXPRESSION_PROVIDER: return createGenLiteralExpressionProvider();
case GMFGenPackage.GEN_NAVIGATOR: return createGenNavigator();
case GMFGenPackage.GEN_NAVIGATOR_CHILD_REFERENCE: return createGenNavigatorChildReference();
case GMFGenPackage.GEN_NAVIGATOR_PATH: return createGenNavigatorPath();
@@ -913,6 +914,16 @@ public class GMFGenFactoryImpl extends EFactoryImpl implements GMFGenFactory {
* <!-- end-user-doc -->
* @generated
*/
+ public GenLiteralExpressionProvider createGenLiteralExpressionProvider() {
+ GenLiteralExpressionProviderImpl genLiteralExpressionProvider = new GenLiteralExpressionProviderImpl();
+ return genLiteralExpressionProvider;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public GenNavigator createGenNavigator() {
GenNavigatorImpl genNavigator = new GenNavigatorImpl();
return genNavigator;
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 edd04aeff..bc7ed2f91 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
@@ -15,145 +15,6 @@ import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EValidator;
import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.gmf.codegen.gmfgen.AbstractToolEntry;
-import org.eclipse.gmf.codegen.gmfgen.Attributes;
-import org.eclipse.gmf.codegen.gmfgen.BatchValidation;
-import org.eclipse.gmf.codegen.gmfgen.Behaviour;
-import org.eclipse.gmf.codegen.gmfgen.ColorAttributes;
-import org.eclipse.gmf.codegen.gmfgen.CustomBehaviour;
-import org.eclipse.gmf.codegen.gmfgen.CustomTabFilter;
-import org.eclipse.gmf.codegen.gmfgen.DefaultSizeAttributes;
-import org.eclipse.gmf.codegen.gmfgen.DesignLabelModelFacet;
-import org.eclipse.gmf.codegen.gmfgen.DiagramColors;
-import org.eclipse.gmf.codegen.gmfgen.DynamicModelAccess;
-import org.eclipse.gmf.codegen.gmfgen.EditPartCandies;
-import org.eclipse.gmf.codegen.gmfgen.EditorCandies;
-import org.eclipse.gmf.codegen.gmfgen.ElementType;
-import org.eclipse.gmf.codegen.gmfgen.EntryBase;
-import org.eclipse.gmf.codegen.gmfgen.FeatureLabelModelFacet;
-import org.eclipse.gmf.codegen.gmfgen.FeatureLinkModelFacet;
-import org.eclipse.gmf.codegen.gmfgen.FigureViewmap;
-import org.eclipse.gmf.codegen.gmfgen.FontStyle;
-import org.eclipse.gmf.codegen.gmfgen.GMFGenFactory;
-import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
-import org.eclipse.gmf.codegen.gmfgen.GenActionFactoryContributionItem;
-import org.eclipse.gmf.codegen.gmfgen.GenApplication;
-import org.eclipse.gmf.codegen.gmfgen.GenAuditContainer;
-import org.eclipse.gmf.codegen.gmfgen.GenAuditContext;
-import org.eclipse.gmf.codegen.gmfgen.GenAuditRoot;
-import org.eclipse.gmf.codegen.gmfgen.GenAuditRule;
-import org.eclipse.gmf.codegen.gmfgen.GenAuditable;
-import org.eclipse.gmf.codegen.gmfgen.GenAuditedMetricTarget;
-import org.eclipse.gmf.codegen.gmfgen.GenChildContainer;
-import org.eclipse.gmf.codegen.gmfgen.GenChildLabelNode;
-import org.eclipse.gmf.codegen.gmfgen.GenChildNode;
-import org.eclipse.gmf.codegen.gmfgen.GenChildSideAffixedNode;
-import org.eclipse.gmf.codegen.gmfgen.GenColor;
-import org.eclipse.gmf.codegen.gmfgen.GenCommonBase;
-import org.eclipse.gmf.codegen.gmfgen.GenCompartment;
-import org.eclipse.gmf.codegen.gmfgen.GenConstantColor;
-import org.eclipse.gmf.codegen.gmfgen.GenConstraint;
-import org.eclipse.gmf.codegen.gmfgen.GenContainerBase;
-import org.eclipse.gmf.codegen.gmfgen.GenContributionItem;
-import org.eclipse.gmf.codegen.gmfgen.GenContributionManager;
-import org.eclipse.gmf.codegen.gmfgen.GenCustomFont;
-import org.eclipse.gmf.codegen.gmfgen.GenCustomPreferencePage;
-import org.eclipse.gmf.codegen.gmfgen.GenCustomPropertyTab;
-import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
-import org.eclipse.gmf.codegen.gmfgen.GenDiagramElementTarget;
-import org.eclipse.gmf.codegen.gmfgen.GenDiagramPreferences;
-import org.eclipse.gmf.codegen.gmfgen.GenDiagramUpdater;
-import org.eclipse.gmf.codegen.gmfgen.GenDomainAttributeTarget;
-import org.eclipse.gmf.codegen.gmfgen.GenDomainElementTarget;
-import org.eclipse.gmf.codegen.gmfgen.GenDomainModelNavigator;
-import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
-import org.eclipse.gmf.codegen.gmfgen.GenEditorView;
-import org.eclipse.gmf.codegen.gmfgen.GenElementInitializer;
-import org.eclipse.gmf.codegen.gmfgen.GenExpressionInterpreter;
-import org.eclipse.gmf.codegen.gmfgen.GenExpressionProviderBase;
-import org.eclipse.gmf.codegen.gmfgen.GenExpressionProviderContainer;
-import org.eclipse.gmf.codegen.gmfgen.GenExternalNodeLabel;
-import org.eclipse.gmf.codegen.gmfgen.GenFeatureInitializer;
-import org.eclipse.gmf.codegen.gmfgen.GenFeatureSeqInitializer;
-import org.eclipse.gmf.codegen.gmfgen.GenFeatureValueSpec;
-import org.eclipse.gmf.codegen.gmfgen.GenFont;
-import org.eclipse.gmf.codegen.gmfgen.GenGroupMarker;
-import org.eclipse.gmf.codegen.gmfgen.GenJavaExpressionProvider;
-import org.eclipse.gmf.codegen.gmfgen.GenLabel;
-import org.eclipse.gmf.codegen.gmfgen.GenLanguage;
-import org.eclipse.gmf.codegen.gmfgen.GenLink;
-import org.eclipse.gmf.codegen.gmfgen.GenLinkConstraints;
-import org.eclipse.gmf.codegen.gmfgen.GenLinkLabel;
-import org.eclipse.gmf.codegen.gmfgen.GenMeasurable;
-import org.eclipse.gmf.codegen.gmfgen.GenMenuManager;
-import org.eclipse.gmf.codegen.gmfgen.GenMetricContainer;
-import org.eclipse.gmf.codegen.gmfgen.GenMetricRule;
-import org.eclipse.gmf.codegen.gmfgen.GenNavigator;
-import org.eclipse.gmf.codegen.gmfgen.GenNavigatorChildReference;
-import org.eclipse.gmf.codegen.gmfgen.GenNavigatorPath;
-import org.eclipse.gmf.codegen.gmfgen.GenNavigatorPathSegment;
-import org.eclipse.gmf.codegen.gmfgen.GenNavigatorReferenceType;
-import org.eclipse.gmf.codegen.gmfgen.GenNode;
-import org.eclipse.gmf.codegen.gmfgen.GenNodeLabel;
-import org.eclipse.gmf.codegen.gmfgen.GenNotationElementTarget;
-import org.eclipse.gmf.codegen.gmfgen.GenPlugin;
-import org.eclipse.gmf.codegen.gmfgen.GenPreferencePage;
-import org.eclipse.gmf.codegen.gmfgen.GenPropertySheet;
-import org.eclipse.gmf.codegen.gmfgen.GenPropertyTab;
-import org.eclipse.gmf.codegen.gmfgen.GenPropertyTabFilter;
-import org.eclipse.gmf.codegen.gmfgen.GenRGBColor;
-import org.eclipse.gmf.codegen.gmfgen.GenReferenceNewElementSpec;
-import org.eclipse.gmf.codegen.gmfgen.GenRuleBase;
-import org.eclipse.gmf.codegen.gmfgen.GenRuleTarget;
-import org.eclipse.gmf.codegen.gmfgen.GenSeparator;
-import org.eclipse.gmf.codegen.gmfgen.GenSeverity;
-import org.eclipse.gmf.codegen.gmfgen.GenSharedContributionItem;
-import org.eclipse.gmf.codegen.gmfgen.GenStandardFont;
-import org.eclipse.gmf.codegen.gmfgen.GenStandardPreferencePage;
-import org.eclipse.gmf.codegen.gmfgen.GenStandardPropertyTab;
-import org.eclipse.gmf.codegen.gmfgen.GenToolBarManager;
-import org.eclipse.gmf.codegen.gmfgen.GenTopLevelNode;
-import org.eclipse.gmf.codegen.gmfgen.GeneratedType;
-import org.eclipse.gmf.codegen.gmfgen.InnerClassViewmap;
-import org.eclipse.gmf.codegen.gmfgen.JFaceFont;
-import org.eclipse.gmf.codegen.gmfgen.LabelModelFacet;
-import org.eclipse.gmf.codegen.gmfgen.LabelOffsetAttributes;
-import org.eclipse.gmf.codegen.gmfgen.LabelTextAccessMethod;
-import org.eclipse.gmf.codegen.gmfgen.LineStyle;
-import org.eclipse.gmf.codegen.gmfgen.LinkConstraints;
-import org.eclipse.gmf.codegen.gmfgen.LinkLabelAlignment;
-import org.eclipse.gmf.codegen.gmfgen.LinkModelFacet;
-import org.eclipse.gmf.codegen.gmfgen.MeasurementUnit;
-import org.eclipse.gmf.codegen.gmfgen.MetamodelType;
-import org.eclipse.gmf.codegen.gmfgen.ModelFacet;
-import org.eclipse.gmf.codegen.gmfgen.NotationType;
-import org.eclipse.gmf.codegen.gmfgen.OpenDiagramBehaviour;
-import org.eclipse.gmf.codegen.gmfgen.PackageNames;
-import org.eclipse.gmf.codegen.gmfgen.Palette;
-import org.eclipse.gmf.codegen.gmfgen.ParentAssignedViewmap;
-import org.eclipse.gmf.codegen.gmfgen.ProviderClassNames;
-import org.eclipse.gmf.codegen.gmfgen.ProviderPriority;
-import org.eclipse.gmf.codegen.gmfgen.ResizeConstraints;
-import org.eclipse.gmf.codegen.gmfgen.Routing;
-import org.eclipse.gmf.codegen.gmfgen.RulerUnits;
-import org.eclipse.gmf.codegen.gmfgen.Separator;
-import org.eclipse.gmf.codegen.gmfgen.SharedBehaviour;
-import org.eclipse.gmf.codegen.gmfgen.Shortcuts;
-import org.eclipse.gmf.codegen.gmfgen.SnippetViewmap;
-import org.eclipse.gmf.codegen.gmfgen.SpecializationType;
-import org.eclipse.gmf.codegen.gmfgen.StandardEntry;
-import org.eclipse.gmf.codegen.gmfgen.StandardEntryKind;
-import org.eclipse.gmf.codegen.gmfgen.StandardPreferencePages;
-import org.eclipse.gmf.codegen.gmfgen.StyleAttributes;
-import org.eclipse.gmf.codegen.gmfgen.ToolEntry;
-import org.eclipse.gmf.codegen.gmfgen.ToolGroup;
-import org.eclipse.gmf.codegen.gmfgen.ToolGroupItem;
-import org.eclipse.gmf.codegen.gmfgen.TypeLinkModelFacet;
-import org.eclipse.gmf.codegen.gmfgen.TypeModelFacet;
-import org.eclipse.gmf.codegen.gmfgen.TypeTabFilter;
-import org.eclipse.gmf.codegen.gmfgen.ValueExpression;
-import org.eclipse.gmf.codegen.gmfgen.Viewmap;
-import org.eclipse.gmf.codegen.gmfgen.ViewmapLayoutType;
import org.eclipse.gmf.codegen.gmfgen.*;
import org.eclipse.gmf.validate.GMFValidator;
@@ -869,6 +730,13 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
* <!-- end-user-doc -->
* @generated
*/
+ private EClass genLiteralExpressionProviderEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
private EClass genDomainModelNavigatorEClass = null;
/**
@@ -5209,6 +5077,15 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
* <!-- end-user-doc -->
* @generated
*/
+ public EClass getGenLiteralExpressionProvider() {
+ return genLiteralExpressionProviderEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EClass getGenDomainModelNavigator() {
return genDomainModelNavigatorEClass;
}
@@ -6785,6 +6662,8 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
createEAttribute(genExpressionInterpreterEClass, GEN_EXPRESSION_INTERPRETER__LANGUAGE);
createEAttribute(genExpressionInterpreterEClass, GEN_EXPRESSION_INTERPRETER__CLASS_NAME);
+ genLiteralExpressionProviderEClass = createEClass(GEN_LITERAL_EXPRESSION_PROVIDER);
+
genDomainModelNavigatorEClass = createEClass(GEN_DOMAIN_MODEL_NAVIGATOR);
createEAttribute(genDomainModelNavigatorEClass, GEN_DOMAIN_MODEL_NAVIGATOR__GENERATE_DOMAIN_MODEL_NAVIGATOR);
createEAttribute(genDomainModelNavigatorEClass, GEN_DOMAIN_MODEL_NAVIGATOR__DOMAIN_CONTENT_EXTENSION_ID);
@@ -7028,6 +6907,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
genMeasurableEClass.getESuperTypes().add(this.getGenRuleTarget());
genJavaExpressionProviderEClass.getESuperTypes().add(this.getGenExpressionProviderBase());
genExpressionInterpreterEClass.getESuperTypes().add(this.getGenExpressionProviderBase());
+ genLiteralExpressionProviderEClass.getESuperTypes().add(this.getGenExpressionProviderBase());
genNavigatorEClass.getESuperTypes().add(this.getGenDomainModelNavigator());
genStandardPropertyTabEClass.getESuperTypes().add(this.getGenPropertyTab());
genCustomPropertyTabEClass.getESuperTypes().add(this.getGenPropertyTab());
@@ -7807,6 +7687,8 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
op = addEOperation(genExpressionInterpreterEClass, ecorePackage.getEString(), "getExpressionAccessor", 0, 1, IS_UNIQUE, IS_ORDERED);
addEParameter(op, this.getValueExpression(), "expression", 1, 1, IS_UNIQUE, IS_ORDERED);
+ initEClass(genLiteralExpressionProviderEClass, GenLiteralExpressionProvider.class, "GenLiteralExpressionProvider", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
initEClass(genDomainModelNavigatorEClass, GenDomainModelNavigator.class, "GenDomainModelNavigator", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getGenDomainModelNavigator_GenerateDomainModelNavigator(), ecorePackage.getEBoolean(), "generateDomainModelNavigator", "true", 0, 1, GenDomainModelNavigator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getGenDomainModelNavigator_DomainContentExtensionID(), ecorePackage.getEString(), "domainContentExtensionID", null, 0, 1, GenDomainModelNavigator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -8097,6 +7979,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
addEEnumLiteral(genLanguageEEnum, GenLanguage.JAVA_LITERAL);
addEEnumLiteral(genLanguageEEnum, GenLanguage.REGEXP_LITERAL);
addEEnumLiteral(genLanguageEEnum, GenLanguage.NREGEXP_LITERAL);
+ addEEnumLiteral(genLanguageEEnum, GenLanguage.LITERAL_LITERAL);
initEEnum(genNavigatorReferenceTypeEEnum, GenNavigatorReferenceType.class, "GenNavigatorReferenceType");
addEEnumLiteral(genNavigatorReferenceTypeEEnum, GenNavigatorReferenceType.CHILDREN_LITERAL);
@@ -8135,7 +8018,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
"constraints", "http://www.eclipse.org/gmf/2005/constraints",
"meta", "http://www.eclipse.org/gmf/2005/constraints/meta",
"deprecated", "http://www.eclipse.org/gmf/2006/deprecated"
- });
+ });
}
/**
@@ -8361,7 +8244,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
new String[] {
"ocl", "not key.oclIsUndefined() implies container.metrics->one(i | i.key = self.key)",
"description", "Metric rule with the same \'key\' already exists"
- });
+ });
addAnnotation
(getGenSharedContributionItem_ActualItem(),
source,
@@ -8384,7 +8267,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
source,
new String[] {
"documentation", "LinkCreationConstants should be generated if diagram has any links"
- });
+ });
}
/**
@@ -8490,7 +8373,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
new String[] {
"def", "type",
"ocl", "\'ecore::EDoubleObject\'"
- });
+ });
}
} //GMFGenPackageImpl \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenLiteralExpressionProviderImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenLiteralExpressionProviderImpl.java
new file mode 100644
index 000000000..d4041812e
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenLiteralExpressionProviderImpl.java
@@ -0,0 +1,48 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
+import org.eclipse.gmf.codegen.gmfgen.GenLanguage;
+import org.eclipse.gmf.codegen.gmfgen.GenLiteralExpressionProvider;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Gen Literal Expression Provider</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class GenLiteralExpressionProviderImpl extends GenExpressionProviderBaseImpl implements GenLiteralExpressionProvider {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected GenLiteralExpressionProviderImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return GMFGenPackage.eINSTANCE.getGenLiteralExpressionProvider();
+ }
+
+ @Override
+ public GenLanguage getLanguage() {
+ return GenLanguage.LITERAL_LITERAL;
+ }
+} //GenLiteralExpressionProviderImpl
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 b5eda1111..012d51069 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
@@ -469,6 +469,10 @@ public class GMFGenAdapterFactory extends AdapterFactoryImpl {
return createGenExpressionInterpreterAdapter();
}
@Override
+ public Adapter caseGenLiteralExpressionProvider(GenLiteralExpressionProvider object) {
+ return createGenLiteralExpressionProviderAdapter();
+ }
+ @Override
public Adapter caseGenDomainModelNavigator(GenDomainModelNavigator object) {
return createGenDomainModelNavigatorAdapter();
}
@@ -1931,6 +1935,20 @@ public class GMFGenAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.GenLiteralExpressionProvider <em>Gen Literal Expression Provider</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.GenLiteralExpressionProvider
+ * @generated
+ */
+ public Adapter createGenLiteralExpressionProviderAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.GenDomainModelNavigator <em>Gen Domain Model Navigator</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 72dfa2f3f..76a93ec3f 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
@@ -799,6 +799,13 @@ public class GMFGenSwitch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
+ case GMFGenPackage.GEN_LITERAL_EXPRESSION_PROVIDER: {
+ GenLiteralExpressionProvider genLiteralExpressionProvider = (GenLiteralExpressionProvider)theEObject;
+ T result = caseGenLiteralExpressionProvider(genLiteralExpressionProvider);
+ if (result == null) result = caseGenExpressionProviderBase(genLiteralExpressionProvider);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
case GMFGenPackage.GEN_DOMAIN_MODEL_NAVIGATOR: {
GenDomainModelNavigator genDomainModelNavigator = (GenDomainModelNavigator)theEObject;
T result = caseGenDomainModelNavigator(genDomainModelNavigator);
@@ -2399,6 +2406,21 @@ public class GMFGenSwitch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Literal Expression Provider</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 Literal Expression Provider</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenLiteralExpressionProvider(GenLiteralExpressionProvider object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Gen Domain Model Navigator</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;

Back to the top