Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fluegge2010-10-08 16:50:42 +0000
committerMartin Fluegge2010-10-08 16:50:42 +0000
commit01700460fd91df78dc01bd6f026f7077fe98fa5a (patch)
treee6ba381e5d16f66d0ae28ee41d2d65c43f4ce0f1 /plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel
parent7bfe12fe5466a6f34e467252dcac8839ac3f1e4e (diff)
downloadcdo-01700460fd91df78dc01bd6f026f7077fe98fa5a.tar.gz
cdo-01700460fd91df78dc01bd6f026f7077fe98fa5a.tar.xz
cdo-01700460fd91df78dc01bd6f026f7077fe98fa5a.zip
[323828] [Dawn] Provide collaborative EMF editors on CDO
https://bugs.eclipse.org/bugs/show_bug.cgi?id=323828
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/META-INF/MANIFEST.MF10
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/model/DawnCodeGen.ecore12
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnEMFGenerator.java31
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnFragmentGenerator.java127
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGMFGenerator.java59
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGenerator.java95
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelFactory.java27
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelPackage.java354
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnEMFGeneratorImpl.java57
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnFragmentGeneratorImpl.java323
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGMFGeneratorImpl.java146
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGeneratorImpl.java319
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelFactoryImpl.java42
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelPackageImpl.java169
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelAdapterFactory.java67
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelSwitch.java90
16 files changed, 1656 insertions, 272 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/META-INF/MANIFEST.MF
index 4a385876bb..5dc38f5ecf 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.emf.cdo.dawn.codegen.dawngenmodel;singleton:=true
-Bundle-Version: 0.2.100.qualifier
+Bundle-Version: 1.0.0.qualifier
Bundle-Localization: plugin
Bundle-Activator: org.eclipse.emf.cdo.dawn.codegen.genmodel.DawnGenModelPlugin
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
@@ -10,8 +10,8 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.gmf.codegen;bundle-version="[2.2.0,3.0.0)"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Export-Package: org.eclipse.emf.cdo.dawn.codegen.dawngenmodel;version="0.2.100",
- org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl;version="0.2.100",
- org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.util;version="0.2.100",
- org.eclipse.emf.cdo.dawn.codegen.genmodel;version="0.2.100"
+Export-Package: org.eclipse.emf.cdo.dawn.codegen.dawngenmodel;version="1.0.0",
+ org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl;version="1.0.0";x-internal:=true,
+ org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.util;version="1.0.0",
+ org.eclipse.emf.cdo.dawn.codegen.genmodel;version="1.0.0"
Bundle-Vendor: %providerName
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/model/DawnCodeGen.ecore b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/model/DawnCodeGen.ecore
index 1fa1b67a82..e49cb3d16b 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/model/DawnCodeGen.ecore
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/model/DawnCodeGen.ecore
@@ -3,9 +3,18 @@
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="dawngenmodel"
nsURI="http://www.eclipse.org/emf/cdo/dawn/2010/GenModel" nsPrefix="dawngenmodel">
- <eClassifiers xsi:type="ecore:EClass" name="DawnGMFGenerator">
+ <eClassifiers xsi:type="ecore:EClass" name="DawnGenerator">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="emfFragmentgenerator" eType="#//DawnEMFGenerator"
+ containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="gmfFragmentgenerator" eType="#//DawnGMFGenerator"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DawnFragmentGenerator">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="fragmentName" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dawnEditorClassName" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="emfGenModel" eType="ecore:EClass platform:/plugin/org.eclipse.emf.codegen.ecore/model/GenModel.ecore#//GenModel"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DawnGMFGenerator" eSuperTypes="#//DawnFragmentGenerator">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dawnDocumentProviderClassName"
eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dawnEditorUtilClassName"
@@ -25,4 +34,5 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="GMFGenEditorGenerator"
eType="ecore:EClass platform:/plugin/org.eclipse.gmf.codegen/models/gmfgen.ecore#//GenEditorGenerator"/>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DawnEMFGenerator" eSuperTypes="#//DawnFragmentGenerator"/>
</ecore:EPackage>
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnEMFGenerator.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnEMFGenerator.java
new file mode 100644
index 0000000000..a65590bd97
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnEMFGenerator.java
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Fluegge - initial API and implementation
+ */
+package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Dawn EMF Generator</b></em>'. <!-- end-user-doc
+ * -->
+ *
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnEMFGenerator()
+ * @model
+ * @generated
+ * @since 1.0
+ */
+public interface DawnEMFGenerator extends DawnFragmentGenerator
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
+
+} // DawnEMFGenerator
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnFragmentGenerator.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnFragmentGenerator.java
new file mode 100644
index 0000000000..dbf4c7fabb
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnFragmentGenerator.java
@@ -0,0 +1,127 @@
+/**
+ * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Fluegge - initial API and implementation
+ */
+package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel;
+
+import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Dawn Fragment Generator</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getFragmentName <em>Fragment Name
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getDawnEditorClassName <em>Dawn Editor
+ * Class Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getEmfGenModel <em>Emf Gen Model</em>}
+ * </li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnFragmentGenerator()
+ * @model
+ * @generated
+ * @since 1.0
+ */
+public interface DawnFragmentGenerator extends EObject
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
+
+ /**
+ * Returns the value of the '<em><b>Fragment Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Fragment 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>Fragment Name</em>' attribute.
+ * @see #setFragmentName(String)
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnFragmentGenerator_FragmentName()
+ * @model
+ * @generated
+ */
+ String getFragmentName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getFragmentName
+ * <em>Fragment Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Fragment Name</em>' attribute.
+ * @see #getFragmentName()
+ * @generated
+ */
+ void setFragmentName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Dawn Editor Class Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Dawn Editor Class 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>Dawn Editor Class Name</em>' attribute.
+ * @see #setDawnEditorClassName(String)
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnFragmentGenerator_DawnEditorClassName()
+ * @model
+ * @generated
+ */
+ String getDawnEditorClassName();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getDawnEditorClassName
+ * <em>Dawn Editor Class Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Dawn Editor Class Name</em>' attribute.
+ * @see #getDawnEditorClassName()
+ * @generated
+ */
+ void setDawnEditorClassName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Emf Gen Model</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Emf Gen Model</em>' reference isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Emf Gen Model</em>' reference.
+ * @see #setEmfGenModel(GenModel)
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnFragmentGenerator_EmfGenModel()
+ * @model
+ * @generated
+ */
+ GenModel getEmfGenModel();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getEmfGenModel
+ * <em>Emf Gen Model</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Emf Gen Model</em>' reference.
+ * @see #getEmfGenModel()
+ * @generated
+ */
+ void setEmfGenModel(GenModel value);
+
+} // DawnFragmentGenerator
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGMFGenerator.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGMFGenerator.java
index d41f93526d..6a2db52b2f 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGMFGenerator.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGMFGenerator.java
@@ -10,8 +10,6 @@
*/
package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel;
-import org.eclipse.emf.ecore.EObject;
-
import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
/**
@@ -48,7 +46,7 @@ import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
* @model
* @generated
*/
-public interface DawnGMFGenerator extends EObject
+public interface DawnGMFGenerator extends DawnFragmentGenerator
{
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -58,61 +56,6 @@ public interface DawnGMFGenerator extends EObject
String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
/**
- * Returns the value of the '<em><b>Fragment Name</b></em>' attribute. <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Fragment 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>Fragment Name</em>' attribute.
- * @see #setFragmentName(String)
- * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnGMFGenerator_FragmentName()
- * @model
- * @generated
- */
- String getFragmentName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator#getFragmentName
- * <em>Fragment Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Fragment Name</em>' attribute.
- * @see #getFragmentName()
- * @generated
- */
- void setFragmentName(String value);
-
- /**
- * Returns the value of the '<em><b>Dawn Editor Class Name</b></em>' attribute. <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Dawn Editor Class 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>Dawn Editor Class Name</em>' attribute.
- * @see #setDawnEditorClassName(String)
- * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnGMFGenerator_DawnEditorClassName()
- * @model
- * @generated
- */
- String getDawnEditorClassName();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator#getDawnEditorClassName
- * <em>Dawn Editor Class Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Dawn Editor Class Name</em>' attribute.
- * @see #getDawnEditorClassName()
- * @generated
- */
- void setDawnEditorClassName(String value);
-
- /**
* Returns the value of the '<em><b>Dawn Document Provider Class Name</b></em>' attribute. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Dawn Document Provider Class Name</em>' attribute isn't clear, there really should be
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGenerator.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGenerator.java
new file mode 100644
index 0000000000..1c1d9b1065
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawnGenerator.java
@@ -0,0 +1,95 @@
+/**
+ * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Fluegge - initial API and implementation
+ */
+package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Dawn Generator</b></em>'. <!-- end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator#getEmfFragmentgenerator <em>Emf
+ * Fragmentgenerator</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator#getGmfFragmentgenerator <em>Gmf
+ * Fragmentgenerator</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnGenerator()
+ * @model
+ * @generated
+ * @since 1.0
+ */
+public interface DawnGenerator extends EObject
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
+
+ /**
+ * Returns the value of the '<em><b>Emf Fragmentgenerator</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Emf Fragmentgenerator</em>' containment reference isn't clear, there really should be
+ * more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Emf Fragmentgenerator</em>' containment reference.
+ * @see #setEmfFragmentgenerator(DawnEMFGenerator)
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnGenerator_EmfFragmentgenerator()
+ * @model containment="true"
+ * @generated
+ */
+ DawnEMFGenerator getEmfFragmentgenerator();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator#getEmfFragmentgenerator
+ * <em>Emf Fragmentgenerator</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Emf Fragmentgenerator</em>' containment reference.
+ * @see #getEmfFragmentgenerator()
+ * @generated
+ */
+ void setEmfFragmentgenerator(DawnEMFGenerator value);
+
+ /**
+ * Returns the value of the '<em><b>Gmf Fragmentgenerator</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Gmf Fragmentgenerator</em>' containment reference isn't clear, there really should be
+ * more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Gmf Fragmentgenerator</em>' containment reference.
+ * @see #setGmfFragmentgenerator(DawnGMFGenerator)
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage#getDawnGenerator_GmfFragmentgenerator()
+ * @model containment="true"
+ * @generated
+ */
+ DawnGMFGenerator getGmfFragmentgenerator();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator#getGmfFragmentgenerator
+ * <em>Gmf Fragmentgenerator</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Gmf Fragmentgenerator</em>' containment reference.
+ * @see #getGmfFragmentgenerator()
+ * @generated
+ */
+ void setGmfFragmentgenerator(DawnGMFGenerator value);
+
+} // DawnGenerator
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelFactory.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelFactory.java
index 1c11e8f4ac..82a846ae4c 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelFactory.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelFactory.java
@@ -36,6 +36,24 @@ public interface DawngenmodelFactory extends EFactory
DawngenmodelFactory eINSTANCE = org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelFactoryImpl.init();
/**
+ * Returns a new object of class '<em>Dawn Generator</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Dawn Generator</em>'.
+ * @generated
+ * @since 1.0
+ */
+ DawnGenerator createDawnGenerator();
+
+ /**
+ * Returns a new object of class '<em>Dawn Fragment Generator</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Dawn Fragment Generator</em>'.
+ * @generated
+ * @since 1.0
+ */
+ DawnFragmentGenerator createDawnFragmentGenerator();
+
+ /**
* Returns a new object of class '<em>Dawn GMF Generator</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return a new object of class '<em>Dawn GMF Generator</em>'.
@@ -44,6 +62,15 @@ public interface DawngenmodelFactory extends EFactory
DawnGMFGenerator createDawnGMFGenerator();
/**
+ * Returns a new object of class '<em>Dawn EMF Generator</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Dawn EMF Generator</em>'.
+ * @generated
+ * @since 1.0
+ */
+ DawnEMFGenerator createDawnEMFGenerator();
+
+ /**
* Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the package supported by this factory.
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelPackage.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelPackage.java
index 9c42f157f1..ad1e47636f 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelPackage.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/DawngenmodelPackage.java
@@ -67,6 +67,96 @@ public interface DawngenmodelPackage extends EPackage
DawngenmodelPackage eINSTANCE = org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl.init();
/**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGeneratorImpl
+ * <em>Dawn Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGeneratorImpl
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnGenerator()
+ * @generated
+ * @since 1.0
+ */
+ int DAWN_GENERATOR = 0;
+
+ /**
+ * The feature id for the '<em><b>Emf Fragmentgenerator</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_GENERATOR__EMF_FRAGMENTGENERATOR = 0;
+
+ /**
+ * The feature id for the '<em><b>Gmf Fragmentgenerator</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_GENERATOR__GMF_FRAGMENTGENERATOR = 1;
+
+ /**
+ * The number of structural features of the '<em>Dawn Generator</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_GENERATOR_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnFragmentGeneratorImpl
+ * <em>Dawn Fragment Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnFragmentGeneratorImpl
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnFragmentGenerator()
+ * @generated
+ * @since 1.0
+ */
+ int DAWN_FRAGMENT_GENERATOR = 1;
+
+ /**
+ * The feature id for the '<em><b>Fragment Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Dawn Editor Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME = 1;
+
+ /**
+ * The feature id for the '<em><b>Emf Gen Model</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL = 2;
+
+ /**
+ * The number of structural features of the '<em>Dawn Fragment Generator</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT = 3;
+
+ /**
* The meta object id for the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGMFGeneratorImpl
* <em>Dawn GMF Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -74,7 +164,7 @@ public interface DawngenmodelPackage extends EPackage
* @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnGMFGenerator()
* @generated
*/
- int DAWN_GMF_GENERATOR = 0;
+ int DAWN_GMF_GENERATOR = 2;
/**
* The feature id for the '<em><b>Fragment Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -82,7 +172,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__FRAGMENT_NAME = 0;
+ int DAWN_GMF_GENERATOR__FRAGMENT_NAME = DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME;
/**
* The feature id for the '<em><b>Dawn Editor Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
@@ -91,7 +181,16 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME = 1;
+ int DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME = DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME;
+
+ /**
+ * The feature id for the '<em><b>Emf Gen Model</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_GMF_GENERATOR__EMF_GEN_MODEL = DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL;
/**
* The feature id for the '<em><b>Dawn Document Provider Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
@@ -100,7 +199,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_DOCUMENT_PROVIDER_CLASS_NAME = 2;
+ int DAWN_GMF_GENERATOR__DAWN_DOCUMENT_PROVIDER_CLASS_NAME = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Dawn Editor Util Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
@@ -109,7 +208,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_EDITOR_UTIL_CLASS_NAME = 3;
+ int DAWN_GMF_GENERATOR__DAWN_EDITOR_UTIL_CLASS_NAME = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Dawn Creation Wizard Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
@@ -118,7 +217,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_CREATION_WIZARD_CLASS_NAME = 4;
+ int DAWN_GMF_GENERATOR__DAWN_CREATION_WIZARD_CLASS_NAME = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 2;
/**
* The feature id for the '<em><b>Dawn Canonical Editing Policy Class Name</b></em>' attribute. <!-- begin-user-doc
@@ -127,7 +226,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_CANONICAL_EDITING_POLICY_CLASS_NAME = 5;
+ int DAWN_GMF_GENERATOR__DAWN_CANONICAL_EDITING_POLICY_CLASS_NAME = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 3;
/**
* The feature id for the '<em><b>Dawn Diagram Edit Part Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
@@ -136,7 +235,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_DIAGRAM_EDIT_PART_CLASS_NAME = 6;
+ int DAWN_GMF_GENERATOR__DAWN_DIAGRAM_EDIT_PART_CLASS_NAME = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 4;
/**
* The feature id for the '<em><b>Dawn Edit Part Factory Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
@@ -145,7 +244,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_EDIT_PART_FACTORY_CLASS_NAME = 7;
+ int DAWN_GMF_GENERATOR__DAWN_EDIT_PART_FACTORY_CLASS_NAME = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 5;
/**
* The feature id for the '<em><b>Dawn Edit Part Provider Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
@@ -154,7 +253,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_EDIT_PART_PROVIDER_CLASS_NAME = 8;
+ int DAWN_GMF_GENERATOR__DAWN_EDIT_PART_PROVIDER_CLASS_NAME = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 6;
/**
* The feature id for the '<em><b>Dawn Edit Policy Provider Class Name</b></em>' attribute. <!-- begin-user-doc -->
@@ -163,7 +262,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__DAWN_EDIT_POLICY_PROVIDER_CLASS_NAME = 9;
+ int DAWN_GMF_GENERATOR__DAWN_EDIT_POLICY_PROVIDER_CLASS_NAME = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 7;
/**
* The feature id for the '<em><b>GMF Gen Editor Generator</b></em>' reference. <!-- begin-user-doc --> <!--
@@ -172,7 +271,7 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR__GMF_GEN_EDITOR_GENERATOR = 10;
+ int DAWN_GMF_GENERATOR__GMF_GEN_EDITOR_GENERATOR = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 8;
/**
* The number of structural features of the '<em>Dawn GMF Generator</em>' class. <!-- begin-user-doc --> <!--
@@ -181,41 +280,153 @@ public interface DawngenmodelPackage extends EPackage
* @generated
* @ordered
*/
- int DAWN_GMF_GENERATOR_FEATURE_COUNT = 11;
+ int DAWN_GMF_GENERATOR_FEATURE_COUNT = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 9;
/**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator
- * <em>Dawn GMF Generator</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnEMFGeneratorImpl
+ * <em>Dawn EMF Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
- * @return the meta object for class '<em>Dawn GMF Generator</em>'.
- * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnEMFGeneratorImpl
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnEMFGenerator()
* @generated
+ * @since 1.0
*/
- EClass getDawnGMFGenerator();
+ int DAWN_EMF_GENERATOR = 3;
+
+ /**
+ * The feature id for the '<em><b>Fragment Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_EMF_GENERATOR__FRAGMENT_NAME = DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME;
+
+ /**
+ * The feature id for the '<em><b>Dawn Editor Class Name</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_EMF_GENERATOR__DAWN_EDITOR_CLASS_NAME = DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME;
+
+ /**
+ * The feature id for the '<em><b>Emf Gen Model</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_EMF_GENERATOR__EMF_GEN_MODEL = DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL;
+
+ /**
+ * The number of structural features of the '<em>Dawn EMF Generator</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ * @since 1.0
+ */
+ int DAWN_EMF_GENERATOR_FEATURE_COUNT = DAWN_FRAGMENT_GENERATOR_FEATURE_COUNT + 0;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator
+ * <em>Dawn Generator</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Dawn Generator</em>'.
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator
+ * @generated
+ * @since 1.0
+ */
+ EClass getDawnGenerator();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator#getEmfFragmentgenerator
+ * <em>Emf Fragmentgenerator</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Emf Fragmentgenerator</em>'.
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator#getEmfFragmentgenerator()
+ * @see #getDawnGenerator()
+ * @generated
+ * @since 1.0
+ */
+ EReference getDawnGenerator_EmfFragmentgenerator();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator#getGmfFragmentgenerator
+ * <em>Gmf Fragmentgenerator</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Gmf Fragmentgenerator</em>'.
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator#getGmfFragmentgenerator()
+ * @see #getDawnGenerator()
+ * @generated
+ * @since 1.0
+ */
+ EReference getDawnGenerator_GmfFragmentgenerator();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator
+ * <em>Dawn Fragment Generator</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Dawn Fragment Generator</em>'.
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator
+ * @generated
+ * @since 1.0
+ */
+ EClass getDawnFragmentGenerator();
/**
* Returns the meta object for the attribute '
- * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator#getFragmentName <em>Fragment Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getFragmentName <em>Fragment Name</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the meta object for the attribute '<em>Fragment Name</em>'.
- * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator#getFragmentName()
- * @see #getDawnGMFGenerator()
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getFragmentName()
+ * @see #getDawnFragmentGenerator()
* @generated
+ * @since 1.0
*/
- EAttribute getDawnGMFGenerator_FragmentName();
+ EAttribute getDawnFragmentGenerator_FragmentName();
/**
* Returns the meta object for the attribute '
- * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator#getDawnEditorClassName
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getDawnEditorClassName
* <em>Dawn Editor Class Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the meta object for the attribute '<em>Dawn Editor Class Name</em>'.
- * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator#getDawnEditorClassName()
- * @see #getDawnGMFGenerator()
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getDawnEditorClassName()
+ * @see #getDawnFragmentGenerator()
+ * @generated
+ * @since 1.0
+ */
+ EAttribute getDawnFragmentGenerator_DawnEditorClassName();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getEmfGenModel <em>Emf Gen Model</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Emf Gen Model</em>'.
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator#getEmfGenModel()
+ * @see #getDawnFragmentGenerator()
* @generated
+ * @since 1.0
*/
- EAttribute getDawnGMFGenerator_DawnEditorClassName();
+ EReference getDawnFragmentGenerator_EmfGenModel();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator
+ * <em>Dawn GMF Generator</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Dawn GMF Generator</em>'.
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator
+ * @generated
+ */
+ EClass getDawnGMFGenerator();
/**
* Returns the meta object for the attribute '
@@ -326,6 +537,17 @@ public interface DawngenmodelPackage extends EPackage
EReference getDawnGMFGenerator_GMFGenEditorGenerator();
/**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator
+ * <em>Dawn EMF Generator</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Dawn EMF Generator</em>'.
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator
+ * @generated
+ * @since 1.0
+ */
+ EClass getDawnEMFGenerator();
+
+ /**
* Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the factory that creates the instances of the model.
@@ -348,30 +570,83 @@ public interface DawngenmodelPackage extends EPackage
interface Literals
{
/**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGMFGeneratorImpl
- * <em>Dawn GMF Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGeneratorImpl
+ * <em>Dawn Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
- * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGMFGeneratorImpl
- * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnGMFGenerator()
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGeneratorImpl
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnGenerator()
* @generated
+ * @since 1.0
*/
- EClass DAWN_GMF_GENERATOR = eINSTANCE.getDawnGMFGenerator();
+ EClass DAWN_GENERATOR = eINSTANCE.getDawnGenerator();
+
+ /**
+ * The meta object literal for the '<em><b>Emf Fragmentgenerator</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @since 1.0
+ */
+ EReference DAWN_GENERATOR__EMF_FRAGMENTGENERATOR = eINSTANCE.getDawnGenerator_EmfFragmentgenerator();
+
+ /**
+ * The meta object literal for the '<em><b>Gmf Fragmentgenerator</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @since 1.0
+ */
+ EReference DAWN_GENERATOR__GMF_FRAGMENTGENERATOR = eINSTANCE.getDawnGenerator_GmfFragmentgenerator();
+
+ /**
+ * The meta object literal for the '
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnFragmentGeneratorImpl
+ * <em>Dawn Fragment Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnFragmentGeneratorImpl
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnFragmentGenerator()
+ * @generated
+ * @since 1.0
+ */
+ EClass DAWN_FRAGMENT_GENERATOR = eINSTANCE.getDawnFragmentGenerator();
/**
* The meta object literal for the '<em><b>Fragment Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
+ * @since 1.0
*/
- EAttribute DAWN_GMF_GENERATOR__FRAGMENT_NAME = eINSTANCE.getDawnGMFGenerator_FragmentName();
+ EAttribute DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME = eINSTANCE.getDawnFragmentGenerator_FragmentName();
/**
* The meta object literal for the '<em><b>Dawn Editor Class Name</b></em>' attribute feature. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
+ * @since 1.0
+ */
+ EAttribute DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME = eINSTANCE
+ .getDawnFragmentGenerator_DawnEditorClassName();
+
+ /**
+ * The meta object literal for the '<em><b>Emf Gen Model</b></em>' reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @since 1.0
*/
- EAttribute DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME = eINSTANCE.getDawnGMFGenerator_DawnEditorClassName();
+ EReference DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL = eINSTANCE.getDawnFragmentGenerator_EmfGenModel();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGMFGeneratorImpl
+ * <em>Dawn GMF Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGMFGeneratorImpl
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnGMFGenerator()
+ * @generated
+ */
+ EClass DAWN_GMF_GENERATOR = eINSTANCE.getDawnGMFGenerator();
/**
* The meta object literal for the '<em><b>Dawn Document Provider Class Name</b></em>' attribute feature. <!--
@@ -453,6 +728,17 @@ public interface DawngenmodelPackage extends EPackage
*/
EReference DAWN_GMF_GENERATOR__GMF_GEN_EDITOR_GENERATOR = eINSTANCE.getDawnGMFGenerator_GMFGenEditorGenerator();
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnEMFGeneratorImpl
+ * <em>Dawn EMF Generator</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnEMFGeneratorImpl
+ * @see org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawngenmodelPackageImpl#getDawnEMFGenerator()
+ * @generated
+ * @since 1.0
+ */
+ EClass DAWN_EMF_GENERATOR = eINSTANCE.getDawnEMFGenerator();
+
}
} // DawngenmodelPackage
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnEMFGeneratorImpl.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnEMFGeneratorImpl.java
new file mode 100644
index 0000000000..ef9b68391c
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnEMFGeneratorImpl.java
@@ -0,0 +1,57 @@
+/**
+ * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Fluegge - initial API and implementation
+ */
+package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl;
+
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Dawn EMF Generator</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ * @since 1.0
+ */
+public class DawnEMFGeneratorImpl extends DawnFragmentGeneratorImpl implements DawnEMFGenerator
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DawnEMFGeneratorImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return DawngenmodelPackage.Literals.DAWN_EMF_GENERATOR;
+ }
+
+} // DawnEMFGeneratorImpl
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnFragmentGeneratorImpl.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnFragmentGeneratorImpl.java
new file mode 100644
index 0000000000..0e9f4f61d4
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnFragmentGeneratorImpl.java
@@ -0,0 +1,323 @@
+/**
+ * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Fluegge - initial API and implementation
+ */
+package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl;
+
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage;
+
+import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Dawn Fragment Generator</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnFragmentGeneratorImpl#getFragmentName <em>Fragment
+ * Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnFragmentGeneratorImpl#getDawnEditorClassName <em>
+ * Dawn Editor Class Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnFragmentGeneratorImpl#getEmfGenModel <em>Emf Gen
+ * Model</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DawnFragmentGeneratorImpl extends EObjectImpl implements DawnFragmentGenerator
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
+
+ /**
+ * The default value of the '{@link #getFragmentName() <em>Fragment Name</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getFragmentName()
+ * @generated
+ * @ordered
+ */
+ protected static final String FRAGMENT_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFragmentName() <em>Fragment Name</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFragmentName()
+ * @generated
+ * @ordered
+ */
+ protected String fragmentName = FRAGMENT_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDawnEditorClassName() <em>Dawn Editor Class Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDawnEditorClassName()
+ * @generated
+ * @ordered
+ */
+ protected static final String DAWN_EDITOR_CLASS_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDawnEditorClassName() <em>Dawn Editor Class Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDawnEditorClassName()
+ * @generated
+ * @ordered
+ */
+ protected String dawnEditorClassName = DAWN_EDITOR_CLASS_NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getEmfGenModel() <em>Emf Gen Model</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getEmfGenModel()
+ * @generated
+ * @ordered
+ */
+ protected GenModel emfGenModel;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DawnFragmentGeneratorImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return DawngenmodelPackage.Literals.DAWN_FRAGMENT_GENERATOR;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getFragmentName()
+ {
+ return fragmentName;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setFragmentName(String newFragmentName)
+ {
+ String oldFragmentName = fragmentName;
+ fragmentName = newFragmentName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME,
+ oldFragmentName, fragmentName));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getDawnEditorClassName()
+ {
+ return dawnEditorClassName;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDawnEditorClassName(String newDawnEditorClassName)
+ {
+ String oldDawnEditorClassName = dawnEditorClassName;
+ dawnEditorClassName = newDawnEditorClassName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME, oldDawnEditorClassName,
+ dawnEditorClassName));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenModel getEmfGenModel()
+ {
+ if (emfGenModel != null && emfGenModel.eIsProxy())
+ {
+ InternalEObject oldEmfGenModel = (InternalEObject)emfGenModel;
+ emfGenModel = (GenModel)eResolveProxy(oldEmfGenModel);
+ if (emfGenModel != oldEmfGenModel)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL, oldEmfGenModel, emfGenModel));
+ }
+ }
+ return emfGenModel;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenModel basicGetEmfGenModel()
+ {
+ return emfGenModel;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setEmfGenModel(GenModel newEmfGenModel)
+ {
+ GenModel oldEmfGenModel = emfGenModel;
+ emfGenModel = newEmfGenModel;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL,
+ oldEmfGenModel, emfGenModel));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME:
+ return getFragmentName();
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME:
+ return getDawnEditorClassName();
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL:
+ if (resolve)
+ return getEmfGenModel();
+ return basicGetEmfGenModel();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME:
+ setFragmentName((String)newValue);
+ return;
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME:
+ setDawnEditorClassName((String)newValue);
+ return;
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL:
+ setEmfGenModel((GenModel)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME:
+ setFragmentName(FRAGMENT_NAME_EDEFAULT);
+ return;
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME:
+ setDawnEditorClassName(DAWN_EDITOR_CLASS_NAME_EDEFAULT);
+ return;
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL:
+ setEmfGenModel((GenModel)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME:
+ return FRAGMENT_NAME_EDEFAULT == null ? fragmentName != null : !FRAGMENT_NAME_EDEFAULT.equals(fragmentName);
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME:
+ return DAWN_EDITOR_CLASS_NAME_EDEFAULT == null ? dawnEditorClassName != null : !DAWN_EDITOR_CLASS_NAME_EDEFAULT
+ .equals(dawnEditorClassName);
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL:
+ return emfGenModel != null;
+ }
+ 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(" (fragmentName: ");
+ result.append(fragmentName);
+ result.append(", dawnEditorClassName: ");
+ result.append(dawnEditorClassName);
+ result.append(')');
+ return result.toString();
+ }
+
+} // DawnFragmentGeneratorImpl
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGMFGeneratorImpl.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGMFGeneratorImpl.java
index 80aa9e2f30..6dbe5be0a6 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGMFGeneratorImpl.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGMFGeneratorImpl.java
@@ -17,7 +17,6 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
@@ -56,7 +55,7 @@ import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
*
* @generated
*/
-public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerator
+public class DawnGMFGeneratorImpl extends DawnFragmentGeneratorImpl implements DawnGMFGenerator
{
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -66,46 +65,6 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
/**
- * The default value of the '{@link #getFragmentName() <em>Fragment Name</em>}' attribute. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFragmentName()
- * @generated
- * @ordered
- */
- protected static final String FRAGMENT_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getFragmentName() <em>Fragment Name</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getFragmentName()
- * @generated
- * @ordered
- */
- protected String fragmentName = FRAGMENT_NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDawnEditorClassName() <em>Dawn Editor Class Name</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDawnEditorClassName()
- * @generated
- * @ordered
- */
- protected static final String DAWN_EDITOR_CLASS_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDawnEditorClassName() <em>Dawn Editor Class Name</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDawnEditorClassName()
- * @generated
- * @ordered
- */
- protected String dawnEditorClassName = DAWN_EDITOR_CLASS_NAME_EDEFAULT;
-
- /**
* The default value of the '{@link #getDawnDocumentProviderClassName() <em>Dawn Document Provider Class Name</em>}'
* attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -301,58 +260,6 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
*
* @generated
*/
- public String getFragmentName()
- {
- return fragmentName;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setFragmentName(String newFragmentName)
- {
- String oldFragmentName = fragmentName;
- fragmentName = newFragmentName;
- if (eNotificationRequired())
- {
- eNotify(new ENotificationImpl(this, Notification.SET, DawngenmodelPackage.DAWN_GMF_GENERATOR__FRAGMENT_NAME,
- oldFragmentName, fragmentName));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDawnEditorClassName()
- {
- return dawnEditorClassName;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDawnEditorClassName(String newDawnEditorClassName)
- {
- String oldDawnEditorClassName = dawnEditorClassName;
- dawnEditorClassName = newDawnEditorClassName;
- if (eNotificationRequired())
- {
- eNotify(new ENotificationImpl(this, Notification.SET,
- DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME, oldDawnEditorClassName, dawnEditorClassName));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
public String getDawnDocumentProviderClassName()
{
return dawnDocumentProviderClassName;
@@ -368,11 +275,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
String oldDawnDocumentProviderClassName = dawnDocumentProviderClassName;
dawnDocumentProviderClassName = newDawnDocumentProviderClassName;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_DOCUMENT_PROVIDER_CLASS_NAME, oldDawnDocumentProviderClassName,
dawnDocumentProviderClassName));
- }
}
/**
@@ -395,11 +300,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
String oldDawnEditorUtilClassName = dawnEditorUtilClassName;
dawnEditorUtilClassName = newDawnEditorUtilClassName;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDITOR_UTIL_CLASS_NAME, oldDawnEditorUtilClassName,
dawnEditorUtilClassName));
- }
}
/**
@@ -422,11 +325,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
String oldDawnCreationWizardClassName = dawnCreationWizardClassName;
dawnCreationWizardClassName = newDawnCreationWizardClassName;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_CREATION_WIZARD_CLASS_NAME, oldDawnCreationWizardClassName,
dawnCreationWizardClassName));
- }
}
/**
@@ -449,11 +350,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
String oldDawnCanonicalEditingPolicyClassName = dawnCanonicalEditingPolicyClassName;
dawnCanonicalEditingPolicyClassName = newDawnCanonicalEditingPolicyClassName;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_CANONICAL_EDITING_POLICY_CLASS_NAME,
oldDawnCanonicalEditingPolicyClassName, dawnCanonicalEditingPolicyClassName));
- }
}
/**
@@ -476,11 +375,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
String oldDawnDiagramEditPartClassName = dawnDiagramEditPartClassName;
dawnDiagramEditPartClassName = newDawnDiagramEditPartClassName;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_DIAGRAM_EDIT_PART_CLASS_NAME, oldDawnDiagramEditPartClassName,
dawnDiagramEditPartClassName));
- }
}
/**
@@ -503,11 +400,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
String oldDawnEditPartFactoryClassName = dawnEditPartFactoryClassName;
dawnEditPartFactoryClassName = newDawnEditPartFactoryClassName;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDIT_PART_FACTORY_CLASS_NAME, oldDawnEditPartFactoryClassName,
dawnEditPartFactoryClassName));
- }
}
/**
@@ -530,11 +425,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
String oldDawnEditPartProviderClassName = dawnEditPartProviderClassName;
dawnEditPartProviderClassName = newDawnEditPartProviderClassName;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDIT_PART_PROVIDER_CLASS_NAME, oldDawnEditPartProviderClassName,
dawnEditPartProviderClassName));
- }
}
/**
@@ -557,11 +450,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
String oldDawnEditPolicyProviderClassName = dawnEditPolicyProviderClassName;
dawnEditPolicyProviderClassName = newDawnEditPolicyProviderClassName;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDIT_POLICY_PROVIDER_CLASS_NAME,
oldDawnEditPolicyProviderClassName, dawnEditPolicyProviderClassName));
- }
}
/**
@@ -578,11 +469,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
if (gmfGenEditorGenerator != oldGMFGenEditorGenerator)
{
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
DawngenmodelPackage.DAWN_GMF_GENERATOR__GMF_GEN_EDITOR_GENERATOR, oldGMFGenEditorGenerator,
gmfGenEditorGenerator));
- }
}
}
return gmfGenEditorGenerator;
@@ -608,11 +497,9 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
GenEditorGenerator oldGMFGenEditorGenerator = gmfGenEditorGenerator;
gmfGenEditorGenerator = newGMFGenEditorGenerator;
if (eNotificationRequired())
- {
eNotify(new ENotificationImpl(this, Notification.SET,
DawngenmodelPackage.DAWN_GMF_GENERATOR__GMF_GEN_EDITOR_GENERATOR, oldGMFGenEditorGenerator,
gmfGenEditorGenerator));
- }
}
/**
@@ -625,10 +512,6 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
{
switch (featureID)
{
- case DawngenmodelPackage.DAWN_GMF_GENERATOR__FRAGMENT_NAME:
- return getFragmentName();
- case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME:
- return getDawnEditorClassName();
case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_DOCUMENT_PROVIDER_CLASS_NAME:
return getDawnDocumentProviderClassName();
case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDITOR_UTIL_CLASS_NAME:
@@ -647,9 +530,7 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
return getDawnEditPolicyProviderClassName();
case DawngenmodelPackage.DAWN_GMF_GENERATOR__GMF_GEN_EDITOR_GENERATOR:
if (resolve)
- {
return getGMFGenEditorGenerator();
- }
return basicGetGMFGenEditorGenerator();
}
return super.eGet(featureID, resolve, coreType);
@@ -665,12 +546,6 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
{
switch (featureID)
{
- case DawngenmodelPackage.DAWN_GMF_GENERATOR__FRAGMENT_NAME:
- setFragmentName((String)newValue);
- return;
- case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME:
- setDawnEditorClassName((String)newValue);
- return;
case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_DOCUMENT_PROVIDER_CLASS_NAME:
setDawnDocumentProviderClassName((String)newValue);
return;
@@ -712,12 +587,6 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
{
switch (featureID)
{
- case DawngenmodelPackage.DAWN_GMF_GENERATOR__FRAGMENT_NAME:
- setFragmentName(FRAGMENT_NAME_EDEFAULT);
- return;
- case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME:
- setDawnEditorClassName(DAWN_EDITOR_CLASS_NAME_EDEFAULT);
- return;
case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_DOCUMENT_PROVIDER_CLASS_NAME:
setDawnDocumentProviderClassName(DAWN_DOCUMENT_PROVIDER_CLASS_NAME_EDEFAULT);
return;
@@ -759,11 +628,6 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
{
switch (featureID)
{
- case DawngenmodelPackage.DAWN_GMF_GENERATOR__FRAGMENT_NAME:
- return FRAGMENT_NAME_EDEFAULT == null ? fragmentName != null : !FRAGMENT_NAME_EDEFAULT.equals(fragmentName);
- case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME:
- return DAWN_EDITOR_CLASS_NAME_EDEFAULT == null ? dawnEditorClassName != null : !DAWN_EDITOR_CLASS_NAME_EDEFAULT
- .equals(dawnEditorClassName);
case DawngenmodelPackage.DAWN_GMF_GENERATOR__DAWN_DOCUMENT_PROVIDER_CLASS_NAME:
return DAWN_DOCUMENT_PROVIDER_CLASS_NAME_EDEFAULT == null ? dawnDocumentProviderClassName != null
: !DAWN_DOCUMENT_PROVIDER_CLASS_NAME_EDEFAULT.equals(dawnDocumentProviderClassName);
@@ -803,16 +667,10 @@ public class DawnGMFGeneratorImpl extends EObjectImpl implements DawnGMFGenerato
public String toString()
{
if (eIsProxy())
- {
return super.toString();
- }
StringBuffer result = new StringBuffer(super.toString());
- result.append(" (fragmentName: ");
- result.append(fragmentName);
- result.append(", dawnEditorClassName: ");
- result.append(dawnEditorClassName);
- result.append(", dawnDocumentProviderClassName: ");
+ result.append(" (dawnDocumentProviderClassName: ");
result.append(dawnDocumentProviderClassName);
result.append(", dawnEditorUtilClassName: ");
result.append(dawnEditorUtilClassName);
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGeneratorImpl.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGeneratorImpl.java
new file mode 100644
index 0000000000..91099be7ac
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawnGeneratorImpl.java
@@ -0,0 +1,319 @@
+/**
+ * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Fluegge - initial API and implementation
+ */
+package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl;
+
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Dawn Generator</b></em>'. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGeneratorImpl#getEmfFragmentgenerator <em>Emf
+ * Fragmentgenerator</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl.DawnGeneratorImpl#getGmfFragmentgenerator <em>Gmf
+ * Fragmentgenerator</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DawnGeneratorImpl extends EObjectImpl implements DawnGenerator
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
+
+ /**
+ * The cached value of the '{@link #getEmfFragmentgenerator() <em>Emf Fragmentgenerator</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getEmfFragmentgenerator()
+ * @generated
+ * @ordered
+ */
+ protected DawnEMFGenerator emfFragmentgenerator;
+
+ /**
+ * The cached value of the '{@link #getGmfFragmentgenerator() <em>Gmf Fragmentgenerator</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getGmfFragmentgenerator()
+ * @generated
+ * @ordered
+ */
+ protected DawnGMFGenerator gmfFragmentgenerator;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DawnGeneratorImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return DawngenmodelPackage.Literals.DAWN_GENERATOR;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DawnEMFGenerator getEmfFragmentgenerator()
+ {
+ return emfFragmentgenerator;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetEmfFragmentgenerator(DawnEMFGenerator newEmfFragmentgenerator, NotificationChain msgs)
+ {
+ DawnEMFGenerator oldEmfFragmentgenerator = emfFragmentgenerator;
+ emfFragmentgenerator = newEmfFragmentgenerator;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR, oldEmfFragmentgenerator, newEmfFragmentgenerator);
+ if (msgs == null)
+ {
+ msgs = notification;
+ }
+ else
+ {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setEmfFragmentgenerator(DawnEMFGenerator newEmfFragmentgenerator)
+ {
+ if (newEmfFragmentgenerator != emfFragmentgenerator)
+ {
+ NotificationChain msgs = null;
+ if (emfFragmentgenerator != null)
+ {
+ msgs = ((InternalEObject)emfFragmentgenerator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR, null, msgs);
+ }
+ if (newEmfFragmentgenerator != null)
+ {
+ msgs = ((InternalEObject)newEmfFragmentgenerator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR, null, msgs);
+ }
+ msgs = basicSetEmfFragmentgenerator(newEmfFragmentgenerator, msgs);
+ if (msgs != null)
+ {
+ msgs.dispatch();
+ }
+ }
+ else if (eNotificationRequired())
+ {
+ eNotify(new ENotificationImpl(this, Notification.SET, DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR,
+ newEmfFragmentgenerator, newEmfFragmentgenerator));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DawnGMFGenerator getGmfFragmentgenerator()
+ {
+ return gmfFragmentgenerator;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetGmfFragmentgenerator(DawnGMFGenerator newGmfFragmentgenerator, NotificationChain msgs)
+ {
+ DawnGMFGenerator oldGmfFragmentgenerator = gmfFragmentgenerator;
+ gmfFragmentgenerator = newGmfFragmentgenerator;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR, oldGmfFragmentgenerator, newGmfFragmentgenerator);
+ if (msgs == null)
+ {
+ msgs = notification;
+ }
+ else
+ {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGmfFragmentgenerator(DawnGMFGenerator newGmfFragmentgenerator)
+ {
+ if (newGmfFragmentgenerator != gmfFragmentgenerator)
+ {
+ NotificationChain msgs = null;
+ if (gmfFragmentgenerator != null)
+ {
+ msgs = ((InternalEObject)gmfFragmentgenerator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR, null, msgs);
+ }
+ if (newGmfFragmentgenerator != null)
+ {
+ msgs = ((InternalEObject)newGmfFragmentgenerator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR, null, msgs);
+ }
+ msgs = basicSetGmfFragmentgenerator(newGmfFragmentgenerator, msgs);
+ if (msgs != null)
+ {
+ msgs.dispatch();
+ }
+ }
+ else if (eNotificationRequired())
+ {
+ eNotify(new ENotificationImpl(this, Notification.SET, DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR,
+ newGmfFragmentgenerator, newGmfFragmentgenerator));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR:
+ return basicSetEmfFragmentgenerator(null, msgs);
+ case DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR:
+ return basicSetGmfFragmentgenerator(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR:
+ return getEmfFragmentgenerator();
+ case DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR:
+ return getGmfFragmentgenerator();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR:
+ setEmfFragmentgenerator((DawnEMFGenerator)newValue);
+ return;
+ case DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR:
+ setGmfFragmentgenerator((DawnGMFGenerator)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR:
+ setEmfFragmentgenerator((DawnEMFGenerator)null);
+ return;
+ case DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR:
+ setGmfFragmentgenerator((DawnGMFGenerator)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case DawngenmodelPackage.DAWN_GENERATOR__EMF_FRAGMENTGENERATOR:
+ return emfFragmentgenerator != null;
+ case DawngenmodelPackage.DAWN_GENERATOR__GMF_FRAGMENTGENERATOR:
+ return gmfFragmentgenerator != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // DawnGeneratorImpl
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelFactoryImpl.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelFactoryImpl.java
index 7830fa725a..26e378e8c6 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelFactoryImpl.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelFactoryImpl.java
@@ -10,7 +10,10 @@
*/
package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelFactory;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage;
@@ -77,8 +80,14 @@ public class DawngenmodelFactoryImpl extends EFactoryImpl implements Dawngenmode
{
switch (eClass.getClassifierID())
{
+ case DawngenmodelPackage.DAWN_GENERATOR:
+ return createDawnGenerator();
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR:
+ return createDawnFragmentGenerator();
case DawngenmodelPackage.DAWN_GMF_GENERATOR:
return createDawnGMFGenerator();
+ case DawngenmodelPackage.DAWN_EMF_GENERATOR:
+ return createDawnEMFGenerator();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -89,6 +98,28 @@ public class DawngenmodelFactoryImpl extends EFactoryImpl implements Dawngenmode
*
* @generated
*/
+ public DawnGenerator createDawnGenerator()
+ {
+ DawnGeneratorImpl dawnGenerator = new DawnGeneratorImpl();
+ return dawnGenerator;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DawnFragmentGenerator createDawnFragmentGenerator()
+ {
+ DawnFragmentGeneratorImpl dawnFragmentGenerator = new DawnFragmentGeneratorImpl();
+ return dawnFragmentGenerator;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public DawnGMFGenerator createDawnGMFGenerator()
{
DawnGMFGeneratorImpl dawnGMFGenerator = new DawnGMFGeneratorImpl();
@@ -100,6 +131,17 @@ public class DawngenmodelFactoryImpl extends EFactoryImpl implements Dawngenmode
*
* @generated
*/
+ public DawnEMFGenerator createDawnEMFGenerator()
+ {
+ DawnEMFGeneratorImpl dawnEMFGenerator = new DawnEMFGeneratorImpl();
+ return dawnEMFGenerator;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public DawngenmodelPackage getDawngenmodelPackage()
{
return (DawngenmodelPackage)getEPackage();
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelPackageImpl.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelPackageImpl.java
index 8a37303d6f..c9dffee967 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelPackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/impl/DawngenmodelPackageImpl.java
@@ -10,10 +10,14 @@
*/
package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.impl;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelFactory;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage;
+import org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
@@ -42,9 +46,30 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*
* @generated
*/
+ private EClass dawnGeneratorEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass dawnFragmentGeneratorEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
private EClass dawnGMFGeneratorEClass = null;
/**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass dawnEMFGeneratorEClass = null;
+
+ /**
* Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
* EPackage.Registry} by the package package URI value.
* <p>
@@ -84,14 +109,11 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
public static DawngenmodelPackage init()
{
if (isInited)
- {
return (DawngenmodelPackage)EPackage.Registry.INSTANCE.getEPackage(DawngenmodelPackage.eNS_URI);
- }
// Obtain or create and register package
DawngenmodelPackageImpl theDawngenmodelPackage = (DawngenmodelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DawngenmodelPackageImpl ? EPackage.Registry.INSTANCE
- .get(eNS_URI)
- : new DawngenmodelPackageImpl());
+ .get(eNS_URI) : new DawngenmodelPackageImpl());
isInited = true;
@@ -117,9 +139,9 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*
* @generated
*/
- public EClass getDawnGMFGenerator()
+ public EClass getDawnGenerator()
{
- return dawnGMFGeneratorEClass;
+ return dawnGeneratorEClass;
}
/**
@@ -127,9 +149,9 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*
* @generated
*/
- public EAttribute getDawnGMFGenerator_FragmentName()
+ public EReference getDawnGenerator_EmfFragmentgenerator()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(0);
+ return (EReference)dawnGeneratorEClass.getEStructuralFeatures().get(0);
}
/**
@@ -137,9 +159,59 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*
* @generated
*/
- public EAttribute getDawnGMFGenerator_DawnEditorClassName()
+ public EReference getDawnGenerator_GmfFragmentgenerator()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(1);
+ return (EReference)dawnGeneratorEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDawnFragmentGenerator()
+ {
+ return dawnFragmentGeneratorEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDawnFragmentGenerator_FragmentName()
+ {
+ return (EAttribute)dawnFragmentGeneratorEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDawnFragmentGenerator_DawnEditorClassName()
+ {
+ return (EAttribute)dawnFragmentGeneratorEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDawnFragmentGenerator_EmfGenModel()
+ {
+ return (EReference)dawnFragmentGeneratorEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDawnGMFGenerator()
+ {
+ return dawnGMFGeneratorEClass;
}
/**
@@ -149,7 +221,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EAttribute getDawnGMFGenerator_DawnDocumentProviderClassName()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(2);
+ return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(0);
}
/**
@@ -159,7 +231,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EAttribute getDawnGMFGenerator_DawnEditorUtilClassName()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(3);
+ return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(1);
}
/**
@@ -169,7 +241,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EAttribute getDawnGMFGenerator_DawnCreationWizardClassName()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(4);
+ return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(2);
}
/**
@@ -179,7 +251,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EAttribute getDawnGMFGenerator_DawnCanonicalEditingPolicyClassName()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(5);
+ return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(3);
}
/**
@@ -189,7 +261,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EAttribute getDawnGMFGenerator_DawnDiagramEditPartClassName()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(6);
+ return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(4);
}
/**
@@ -199,7 +271,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EAttribute getDawnGMFGenerator_DawnEditPartFactoryClassName()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(7);
+ return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(5);
}
/**
@@ -209,7 +281,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EAttribute getDawnGMFGenerator_DawnEditPartProviderClassName()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(8);
+ return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(6);
}
/**
@@ -219,7 +291,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EAttribute getDawnGMFGenerator_DawnEditPolicyProviderClassName()
{
- return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(9);
+ return (EAttribute)dawnGMFGeneratorEClass.getEStructuralFeatures().get(7);
}
/**
@@ -229,7 +301,17 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
*/
public EReference getDawnGMFGenerator_GMFGenEditorGenerator()
{
- return (EReference)dawnGMFGeneratorEClass.getEStructuralFeatures().get(10);
+ return (EReference)dawnGMFGeneratorEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDawnEMFGenerator()
+ {
+ return dawnEMFGeneratorEClass;
}
/**
@@ -258,15 +340,20 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
public void createPackageContents()
{
if (isCreated)
- {
return;
- }
isCreated = true;
// Create classes and their features
+ dawnGeneratorEClass = createEClass(DAWN_GENERATOR);
+ createEReference(dawnGeneratorEClass, DAWN_GENERATOR__EMF_FRAGMENTGENERATOR);
+ createEReference(dawnGeneratorEClass, DAWN_GENERATOR__GMF_FRAGMENTGENERATOR);
+
+ dawnFragmentGeneratorEClass = createEClass(DAWN_FRAGMENT_GENERATOR);
+ createEAttribute(dawnFragmentGeneratorEClass, DAWN_FRAGMENT_GENERATOR__FRAGMENT_NAME);
+ createEAttribute(dawnFragmentGeneratorEClass, DAWN_FRAGMENT_GENERATOR__DAWN_EDITOR_CLASS_NAME);
+ createEReference(dawnFragmentGeneratorEClass, DAWN_FRAGMENT_GENERATOR__EMF_GEN_MODEL);
+
dawnGMFGeneratorEClass = createEClass(DAWN_GMF_GENERATOR);
- createEAttribute(dawnGMFGeneratorEClass, DAWN_GMF_GENERATOR__FRAGMENT_NAME);
- createEAttribute(dawnGMFGeneratorEClass, DAWN_GMF_GENERATOR__DAWN_EDITOR_CLASS_NAME);
createEAttribute(dawnGMFGeneratorEClass, DAWN_GMF_GENERATOR__DAWN_DOCUMENT_PROVIDER_CLASS_NAME);
createEAttribute(dawnGMFGeneratorEClass, DAWN_GMF_GENERATOR__DAWN_EDITOR_UTIL_CLASS_NAME);
createEAttribute(dawnGMFGeneratorEClass, DAWN_GMF_GENERATOR__DAWN_CREATION_WIZARD_CLASS_NAME);
@@ -276,6 +363,8 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
createEAttribute(dawnGMFGeneratorEClass, DAWN_GMF_GENERATOR__DAWN_EDIT_PART_PROVIDER_CLASS_NAME);
createEAttribute(dawnGMFGeneratorEClass, DAWN_GMF_GENERATOR__DAWN_EDIT_POLICY_PROVIDER_CLASS_NAME);
createEReference(dawnGMFGeneratorEClass, DAWN_GMF_GENERATOR__GMF_GEN_EDITOR_GENERATOR);
+
+ dawnEMFGeneratorEClass = createEClass(DAWN_EMF_GENERATOR);
}
/**
@@ -294,9 +383,7 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
public void initializePackageContents()
{
if (isInitialized)
- {
return;
- }
isInitialized = true;
// Initialize package
@@ -306,6 +393,8 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
// Obtain other dependent packages
EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+ GenModelPackage theGenModelPackage = (GenModelPackage)EPackage.Registry.INSTANCE
+ .getEPackage(GenModelPackage.eNS_URI);
GMFGenPackage theGMFGenPackage = (GMFGenPackage)EPackage.Registry.INSTANCE.getEPackage(GMFGenPackage.eNS_URI);
// Create type parameters
@@ -313,16 +402,33 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
// Set bounds for type parameters
// Add supertypes to classes
+ dawnGMFGeneratorEClass.getESuperTypes().add(this.getDawnFragmentGenerator());
+ dawnEMFGeneratorEClass.getESuperTypes().add(this.getDawnFragmentGenerator());
// Initialize classes and features; add operations and parameters
- initEClass(dawnGMFGeneratorEClass, DawnGMFGenerator.class, "DawnGMFGenerator", !IS_ABSTRACT, !IS_INTERFACE,
+ initEClass(dawnGeneratorEClass, DawnGenerator.class, "DawnGenerator", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDawnGMFGenerator_FragmentName(), theEcorePackage.getEString(), "fragmentName", null, 0, 1,
- DawnGMFGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ initEReference(getDawnGenerator_EmfFragmentgenerator(), this.getDawnEMFGenerator(), null, "emfFragmentgenerator",
+ null, 0, 1, DawnGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDawnGenerator_GmfFragmentgenerator(), this.getDawnGMFGenerator(), null, "gmfFragmentgenerator",
+ null, 0, 1, DawnGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(dawnFragmentGeneratorEClass, DawnFragmentGenerator.class, "DawnFragmentGenerator", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDawnFragmentGenerator_FragmentName(), theEcorePackage.getEString(), "fragmentName", null, 0, 1,
+ DawnFragmentGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
- initEAttribute(getDawnGMFGenerator_DawnEditorClassName(), theEcorePackage.getEString(), "dawnEditorClassName",
- null, 0, 1, DawnGMFGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ initEAttribute(getDawnFragmentGenerator_DawnEditorClassName(), theEcorePackage.getEString(), "dawnEditorClassName",
+ null, 0, 1, DawnFragmentGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDawnFragmentGenerator_EmfGenModel(), theGenModelPackage.getGenModel(), null, "emfGenModel", null,
+ 0, 1, DawnFragmentGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(dawnGMFGeneratorEClass, DawnGMFGenerator.class, "DawnGMFGenerator", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getDawnGMFGenerator_DawnDocumentProviderClassName(), theEcorePackage.getEString(),
"dawnDocumentProviderClassName", null, 0, 1, DawnGMFGenerator.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -351,6 +457,9 @@ public class DawngenmodelPackageImpl extends EPackageImpl implements Dawngenmode
"GMFGenEditorGenerator", null, 0, 1, DawnGMFGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(dawnEMFGeneratorEClass, DawnEMFGenerator.class, "DawnEMFGenerator", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+
// Create resource
createResource(eNS_URI);
}
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelAdapterFactory.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelAdapterFactory.java
index 08abf7fbd2..e90648bf62 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelAdapterFactory.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelAdapterFactory.java
@@ -10,7 +10,10 @@
*/
package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.util;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage;
import org.eclipse.emf.common.notify.Adapter;
@@ -84,12 +87,30 @@ public class DawngenmodelAdapterFactory extends AdapterFactoryImpl
protected DawngenmodelSwitch<Adapter> modelSwitch = new DawngenmodelSwitch<Adapter>()
{
@Override
+ public Adapter caseDawnGenerator(DawnGenerator object)
+ {
+ return createDawnGeneratorAdapter();
+ }
+
+ @Override
+ public Adapter caseDawnFragmentGenerator(DawnFragmentGenerator object)
+ {
+ return createDawnFragmentGeneratorAdapter();
+ }
+
+ @Override
public Adapter caseDawnGMFGenerator(DawnGMFGenerator object)
{
return createDawnGMFGeneratorAdapter();
}
@Override
+ public Adapter caseDawnEMFGenerator(DawnEMFGenerator object)
+ {
+ return createDawnEMFGeneratorAdapter();
+ }
+
+ @Override
public Adapter defaultCase(EObject object)
{
return createEObjectAdapter();
@@ -111,6 +132,36 @@ public class DawngenmodelAdapterFactory extends AdapterFactoryImpl
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator
+ * <em>Dawn Generator</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.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator
+ * @generated
+ */
+ public Adapter createDawnGeneratorAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator <em>Dawn Fragment Generator</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.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator
+ * @generated
+ * @since 1.0
+ */
+ public Adapter createDawnFragmentGeneratorAdapter()
+ {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '
* {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator <em>Dawn GMF Generator</em>}'. <!--
* begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
@@ -126,6 +177,22 @@ public class DawngenmodelAdapterFactory extends AdapterFactoryImpl
}
/**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator <em>Dawn EMF Generator</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.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator
+ * @generated
+ * @since 1.0
+ */
+ public Adapter createDawnEMFGeneratorAdapter()
+ {
+ return null;
+ }
+
+ /**
* Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!--
* end-user-doc -->
*
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelSwitch.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelSwitch.java
index 874ed018bd..4463e19c28 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelSwitch.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/util/DawngenmodelSwitch.java
@@ -10,7 +10,10 @@
*/
package org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.util;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnEMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnFragmentGenerator;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGMFGenerator;
+import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawnGenerator;
import org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.DawngenmodelPackage;
import org.eclipse.emf.ecore.EClass;
@@ -96,12 +99,50 @@ public class DawngenmodelSwitch<T>
{
switch (classifierID)
{
+ case DawngenmodelPackage.DAWN_GENERATOR:
+ {
+ DawnGenerator dawnGenerator = (DawnGenerator)theEObject;
+ T result = caseDawnGenerator(dawnGenerator);
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case DawngenmodelPackage.DAWN_FRAGMENT_GENERATOR:
+ {
+ DawnFragmentGenerator dawnFragmentGenerator = (DawnFragmentGenerator)theEObject;
+ T result = caseDawnFragmentGenerator(dawnFragmentGenerator);
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
case DawngenmodelPackage.DAWN_GMF_GENERATOR:
{
DawnGMFGenerator dawnGMFGenerator = (DawnGMFGenerator)theEObject;
T result = caseDawnGMFGenerator(dawnGMFGenerator);
if (result == null)
{
+ result = caseDawnFragmentGenerator(dawnGMFGenerator);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case DawngenmodelPackage.DAWN_EMF_GENERATOR:
+ {
+ DawnEMFGenerator dawnEMFGenerator = (DawnEMFGenerator)theEObject;
+ T result = caseDawnEMFGenerator(dawnEMFGenerator);
+ if (result == null)
+ {
+ result = caseDawnFragmentGenerator(dawnEMFGenerator);
+ }
+ if (result == null)
+ {
result = defaultCase(theEObject);
}
return result;
@@ -112,6 +153,39 @@ public class DawngenmodelSwitch<T>
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Dawn Generator</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>Dawn Generator</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ * @since 1.0
+ */
+ public T caseDawnGenerator(DawnGenerator object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Dawn Fragment Generator</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>Dawn Fragment Generator</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ * @since 1.0
+ */
+ public T caseDawnFragmentGenerator(DawnFragmentGenerator object)
+ {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Dawn GMF Generator</em>'. <!-- begin-user-doc
* --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
*
@@ -127,6 +201,22 @@ public class DawngenmodelSwitch<T>
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Dawn EMF Generator</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>Dawn EMF Generator</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ * @since 1.0
+ */
+ public T caseDawnEMFGenerator(DawnEMFGenerator object)
+ {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This
* implementation returns null; returning a non-null result will terminate the switch, but this is the last case
* anyway. <!-- end-user-doc -->

Back to the top