Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2008-10-08 18:51:03 +0000
committeratikhomirov2008-10-08 18:51:03 +0000
commitcfd1619ad2ec7f136b9992b0d6a2b1a45162c305 (patch)
treed60482ffe08341e7926ad31d74f8754e6398cfde
parentaaa733fc89d2d594e56fc3c8b8334aecea538ba3 (diff)
downloadorg.eclipse.gmf-tooling-20081008-1925.tar.gz
org.eclipse.gmf-tooling-20081008-1925.tar.xz
org.eclipse.gmf-tooling-20081008-1925.zip
[174961] Menu actions - refactor previously generated actions to match general approach.v20081008-1925
-rw-r--r--plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore57
-rw-r--r--plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel6
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/CreateShortcutAction.java21
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java27
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java255
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenAction.java57
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/InitDiagramAction.java21
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/LoadResourceAction.java21
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CreateShortcutActionImpl.java66
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java33
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java103
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenActionImpl.java229
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/InitDiagramActionImpl.java66
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/LoadResourceActionImpl.java66
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java72
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java91
16 files changed, 1151 insertions, 40 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore b/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
index ef195474e..9dc8422de 100644
--- a/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
+++ b/plugins/org.eclipse.gmf.codegen/models/gmfgen.ecore
@@ -415,17 +415,29 @@
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Shortcuts" abstract="true" interface="true">
<eOperations name="getShortcutsDecoratorProviderQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eOperations name="getCreateShortcutActionQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eOperations name="getCreateShortcutActionQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/gmf/2006/deprecated">
+ <details key="documentation" value="Use CreateShortcutAction instead"/>
+ </eAnnotations>
+ </eOperations>
<eOperations name="getCreateShortcutDecorationsCommandQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eOperations name="getShortcutPropertyTesterQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eOperations name="generateCreateShortcutAction" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <eOperations name="generateCreateShortcutAction" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/gmf/2006/deprecated">
+ <details key="documentation" value="Use CreateShortcutAction instead"/>
+ </eAnnotations>
+ </eOperations>
<eOperations name="generateShortcutIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="shortcutsDecoratorProviderClassName"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="shortcutsDecoratorProviderPriority"
eType="#//ProviderPriority"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="createShortcutActionClassName"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/gmf/2006/deprecated">
+ <details key="documentation" value="Use CreateShortcutAction instead"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="createShortcutDecorationsCommandClassName"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="shortcutPropertyTesterClassName"
@@ -488,14 +500,26 @@
<eOperations name="getCreationWizardPageQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eOperations name="getDiagramEditorUtilQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eOperations name="getDocumentProviderQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eOperations name="getInitDiagramFileActionQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eOperations name="getInitDiagramFileActionQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/gmf/2006/deprecated">
+ <details key="documentation" value="Use InitDiagramAction instead"/>
+ </eAnnotations>
+ </eOperations>
<eOperations name="getNewDiagramFileWizardQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eOperations name="getDiagramContentInitializerQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eOperations name="getMatchingStrategyQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eOperations name="getVisualIDRegistryQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eOperations name="getElementChooserQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eOperations name="getLoadResourceActionQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eOperations name="generateInitDiagramAction" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <eOperations name="getLoadResourceActionQualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/gmf/2006/deprecated">
+ <details key="documentation" value="Use LoadResourceAction instead"/>
+ </eAnnotations>
+ </eOperations>
+ <eOperations name="generateInitDiagramAction" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/gmf/2006/deprecated">
+ <details key="documentation" value="Use InitDiagramAction instead"/>
+ </eAnnotations>
+ </eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="creationWizardClassName"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="creationWizardPageClassName"
@@ -512,7 +536,11 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="documentProviderClassName"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="initDiagramFileActionClassName"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/gmf/2006/deprecated">
+ <details key="documentation" value="Use InitDiagramAction instead"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="newDiagramFileWizardClassName"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="diagramContentInitializerClassName"
@@ -524,7 +552,11 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="elementChooserClassName"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="loadResourceActionClassName"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/gmf/2006/deprecated">
+ <details key="documentation" value="Use LoadResourceAction instead"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="editingDomainID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EditPartCandies" abstract="true" interface="true">
@@ -2028,6 +2060,15 @@
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="GenAction" abstract="true" eSuperTypes="#//GenContributionItem">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Action that is generated along with diagram action, i.e. there's a template that provides its implementation"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="qualifiedClassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="LoadResourceAction" eSuperTypes="#//GenAction"/>
+ <eClassifiers xsi:type="ecore:EClass" name="InitDiagramAction" eSuperTypes="#//GenAction"/>
+ <eClassifiers xsi:type="ecore:EClass" name="CreateShortcutAction" eSuperTypes="#//GenAction"/>
<eClassifiers xsi:type="ecore:EClass" name="GenActionFactoryContributionItem" eSuperTypes="#//GenContributionItem">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Action from org.eclipse.ui.actions.ActionFactory"/>
diff --git a/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel b/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
index f84f17573..8702a29d6 100644
--- a/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
+++ b/plugins/org.eclipse.gmf.codegen/models/gmfgen.genmodel
@@ -932,6 +932,12 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenCommandAction/commandIdentifier"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenCommandAction/name"/>
</genClasses>
+ <genClasses image="false" ecoreClass="gmfgen.ecore#//GenAction">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenAction/qualifiedClassName"/>
+ </genClasses>
+ <genClasses ecoreClass="gmfgen.ecore#//LoadResourceAction"/>
+ <genClasses ecoreClass="gmfgen.ecore#//InitDiagramAction"/>
+ <genClasses ecoreClass="gmfgen.ecore#//CreateShortcutAction"/>
<genClasses ecoreClass="gmfgen.ecore#//GenActionFactoryContributionItem">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute gmfgen.ecore#//GenActionFactoryContributionItem/name"/>
</genClasses>
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/CreateShortcutAction.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/CreateShortcutAction.java
new file mode 100644
index 000000000..8ccf7f6d7
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/CreateShortcutAction.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Create Shortcut Action</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getCreateShortcutAction()
+ * @model
+ * @generated
+ */
+public interface CreateShortcutAction extends GenAction {
+} // CreateShortcutAction
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java
index b5149fcfb..1c1523eff 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenFactory.java
@@ -755,6 +755,33 @@ public interface GMFGenFactory extends EFactory {
GenCommandAction createGenCommandAction();
/**
+ * Returns a new object of class '<em>Load Resource Action</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Load Resource Action</em>'.
+ * @generated
+ */
+ LoadResourceAction createLoadResourceAction();
+
+ /**
+ * Returns a new object of class '<em>Init Diagram Action</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Init Diagram Action</em>'.
+ * @generated
+ */
+ InitDiagramAction createInitDiagramAction();
+
+ /**
+ * Returns a new object of class '<em>Create Shortcut Action</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Create Shortcut Action</em>'.
+ * @generated
+ */
+ CreateShortcutAction createCreateShortcutAction();
+
+ /**
* Returns a new object of class '<em>Gen Action Factory Contribution Item</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java
index bea5fc107..827378ef9 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GMFGenPackage.java
@@ -9623,6 +9623,154 @@ public interface GMFGenPackage extends EPackage {
int GEN_COMMAND_ACTION_FEATURE_COUNT = GEN_CONTRIBUTION_ITEM_FEATURE_COUNT + 2;
/**
+ * The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.impl.GenActionImpl <em>Gen Action</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GenActionImpl
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenAction()
+ * @generated
+ */
+ int GEN_ACTION = 119;
+
+ /**
+ * The feature id for the '<em><b>Owner</b></em>' container reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_ACTION__OWNER = GEN_CONTRIBUTION_ITEM__OWNER;
+
+ /**
+ * The feature id for the '<em><b>Qualified Class Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_ACTION__QUALIFIED_CLASS_NAME = GEN_CONTRIBUTION_ITEM_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Action</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GEN_ACTION_FEATURE_COUNT = GEN_CONTRIBUTION_ITEM_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.impl.LoadResourceActionImpl <em>Load Resource Action</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.LoadResourceActionImpl
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLoadResourceAction()
+ * @generated
+ */
+ int LOAD_RESOURCE_ACTION = 120;
+
+ /**
+ * The feature id for the '<em><b>Owner</b></em>' container reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LOAD_RESOURCE_ACTION__OWNER = GEN_ACTION__OWNER;
+
+ /**
+ * The feature id for the '<em><b>Qualified Class Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LOAD_RESOURCE_ACTION__QUALIFIED_CLASS_NAME = GEN_ACTION__QUALIFIED_CLASS_NAME;
+
+ /**
+ * The number of structural features of the '<em>Load Resource Action</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LOAD_RESOURCE_ACTION_FEATURE_COUNT = GEN_ACTION_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.impl.InitDiagramActionImpl <em>Init Diagram Action</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.InitDiagramActionImpl
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getInitDiagramAction()
+ * @generated
+ */
+ int INIT_DIAGRAM_ACTION = 121;
+
+ /**
+ * The feature id for the '<em><b>Owner</b></em>' container reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INIT_DIAGRAM_ACTION__OWNER = GEN_ACTION__OWNER;
+
+ /**
+ * The feature id for the '<em><b>Qualified Class Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INIT_DIAGRAM_ACTION__QUALIFIED_CLASS_NAME = GEN_ACTION__QUALIFIED_CLASS_NAME;
+
+ /**
+ * The number of structural features of the '<em>Init Diagram Action</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INIT_DIAGRAM_ACTION_FEATURE_COUNT = GEN_ACTION_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.impl.CreateShortcutActionImpl <em>Create Shortcut Action</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.CreateShortcutActionImpl
+ * @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getCreateShortcutAction()
+ * @generated
+ */
+ int CREATE_SHORTCUT_ACTION = 122;
+
+ /**
+ * The feature id for the '<em><b>Owner</b></em>' container reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CREATE_SHORTCUT_ACTION__OWNER = GEN_ACTION__OWNER;
+
+ /**
+ * The feature id for the '<em><b>Qualified Class Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CREATE_SHORTCUT_ACTION__QUALIFIED_CLASS_NAME = GEN_ACTION__QUALIFIED_CLASS_NAME;
+
+ /**
+ * The number of structural features of the '<em>Create Shortcut Action</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CREATE_SHORTCUT_ACTION_FEATURE_COUNT = GEN_ACTION_FEATURE_COUNT + 0;
+
+ /**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.impl.GenActionFactoryContributionItemImpl <em>Gen Action Factory Contribution Item</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -9630,7 +9778,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenActionFactoryContributionItem()
* @generated
*/
- int GEN_ACTION_FACTORY_CONTRIBUTION_ITEM = 119;
+ int GEN_ACTION_FACTORY_CONTRIBUTION_ITEM = 123;
/**
* The feature id for the '<em><b>Owner</b></em>' container reference.
@@ -9667,7 +9815,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenContributionManager()
* @generated
*/
- int GEN_CONTRIBUTION_MANAGER = 120;
+ int GEN_CONTRIBUTION_MANAGER = 124;
/**
* The feature id for the '<em><b>ID</b></em>' attribute.
@@ -9713,7 +9861,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenMenuManager()
* @generated
*/
- int GEN_MENU_MANAGER = 121;
+ int GEN_MENU_MANAGER = 125;
/**
* The feature id for the '<em><b>ID</b></em>' attribute.
@@ -9777,7 +9925,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenToolBarManager()
* @generated
*/
- int GEN_TOOL_BAR_MANAGER = 122;
+ int GEN_TOOL_BAR_MANAGER = 126;
/**
* The feature id for the '<em><b>ID</b></em>' attribute.
@@ -9832,7 +9980,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenContextMenu()
* @generated
*/
- int GEN_CONTEXT_MENU = 123;
+ int GEN_CONTEXT_MENU = 127;
/**
* The feature id for the '<em><b>ID</b></em>' attribute.
@@ -9887,7 +10035,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenApplication()
* @generated
*/
- int GEN_APPLICATION = 124;
+ int GEN_APPLICATION = 128;
/**
* The feature id for the '<em><b>Editor Gen</b></em>' container reference.
@@ -10032,7 +10180,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenLinkEnd()
* @generated
*/
- int GEN_LINK_END = 125;
+ int GEN_LINK_END = 129;
/**
* The feature id for the '<em><b>Diagram Run Time Class</b></em>' reference.
@@ -10159,7 +10307,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenParsers()
* @generated
*/
- int GEN_PARSERS = 126;
+ int GEN_PARSERS = 130;
/**
* The feature id for the '<em><b>Editor Gen</b></em>' container reference.
@@ -10232,7 +10380,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenParserImplementation()
* @generated
*/
- int GEN_PARSER_IMPLEMENTATION = 127;
+ int GEN_PARSER_IMPLEMENTATION = 131;
/**
* The feature id for the '<em><b>Holder</b></em>' container reference.
@@ -10269,7 +10417,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getPredefinedParser()
* @generated
*/
- int PREDEFINED_PARSER = 128;
+ int PREDEFINED_PARSER = 132;
/**
* The feature id for the '<em><b>Holder</b></em>' container reference.
@@ -10324,7 +10472,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getCustomParser()
* @generated
*/
- int CUSTOM_PARSER = 129;
+ int CUSTOM_PARSER = 133;
/**
* The feature id for the '<em><b>Holder</b></em>' container reference.
@@ -10370,7 +10518,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getExternalParser()
* @generated
*/
- int EXTERNAL_PARSER = 130;
+ int EXTERNAL_PARSER = 134;
/**
* The feature id for the '<em><b>Holder</b></em>' container reference.
@@ -10416,7 +10564,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getStandardPreferencePages()
* @generated
*/
- int STANDARD_PREFERENCE_PAGES = 131;
+ int STANDARD_PREFERENCE_PAGES = 135;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.RulerUnits <em>Ruler Units</em>}' enum.
@@ -10426,7 +10574,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getRulerUnits()
* @generated
*/
- int RULER_UNITS = 132;
+ int RULER_UNITS = 136;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.Routing <em>Routing</em>}' enum.
@@ -10436,7 +10584,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getRouting()
* @generated
*/
- int ROUTING = 133;
+ int ROUTING = 137;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LineStyle <em>Line Style</em>}' enum.
@@ -10446,7 +10594,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLineStyle()
* @generated
*/
- int LINE_STYLE = 134;
+ int LINE_STYLE = 138;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.JFaceFont <em>JFace Font</em>}' enum.
@@ -10456,7 +10604,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getJFaceFont()
* @generated
*/
- int JFACE_FONT = 135;
+ int JFACE_FONT = 139;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.FontStyle <em>Font Style</em>}' enum.
@@ -10466,7 +10614,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getFontStyle()
* @generated
*/
- int FONT_STYLE = 136;
+ int FONT_STYLE = 140;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.DiagramColors <em>Diagram Colors</em>}' enum.
@@ -10476,7 +10624,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getDiagramColors()
* @generated
*/
- int DIAGRAM_COLORS = 137;
+ int DIAGRAM_COLORS = 141;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.ProviderPriority <em>Provider Priority</em>}' enum.
@@ -10486,7 +10634,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getProviderPriority()
* @generated
*/
- int PROVIDER_PRIORITY = 138;
+ int PROVIDER_PRIORITY = 142;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LinkLabelAlignment <em>Link Label Alignment</em>}' enum.
@@ -10496,7 +10644,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLinkLabelAlignment()
* @generated
*/
- int LINK_LABEL_ALIGNMENT = 139;
+ int LINK_LABEL_ALIGNMENT = 143;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.LabelTextAccessMethod <em>Label Text Access Method</em>}' enum.
@@ -10506,7 +10654,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getLabelTextAccessMethod()
* @generated
*/
- int LABEL_TEXT_ACCESS_METHOD = 140;
+ int LABEL_TEXT_ACCESS_METHOD = 144;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.ViewmapLayoutType <em>Viewmap Layout Type</em>}' enum.
@@ -10516,7 +10664,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getViewmapLayoutType()
* @generated
*/
- int VIEWMAP_LAYOUT_TYPE = 141;
+ int VIEWMAP_LAYOUT_TYPE = 145;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.StandardEntryKind <em>Standard Entry Kind</em>}' enum.
@@ -10526,7 +10674,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getStandardEntryKind()
* @generated
*/
- int STANDARD_ENTRY_KIND = 142;
+ int STANDARD_ENTRY_KIND = 146;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.GenSeverity <em>Gen Severity</em>}' enum.
@@ -10536,7 +10684,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenSeverity()
* @generated
*/
- int GEN_SEVERITY = 143;
+ int GEN_SEVERITY = 147;
/**
* The meta object id for the '{@link org.eclipse.gmf.codegen.gmfgen.GenLanguage <em>Gen Language</em>}' enum.
@@ -10546,7 +10694,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenLanguage()
* @generated
*/
- int GEN_LANGUAGE = 144;
+ int GEN_LANGUAGE = 148;
/**
@@ -10557,7 +10705,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGenNavigatorReferenceType()
* @generated
*/
- int GEN_NAVIGATOR_REFERENCE_TYPE = 145;
+ int GEN_NAVIGATOR_REFERENCE_TYPE = 149;
/**
@@ -10568,7 +10716,7 @@ public interface GMFGenPackage extends EPackage {
* @see org.eclipse.gmf.codegen.gmfgen.impl.GMFGenPackageImpl#getGeneratedType()
* @generated
*/
- int GENERATED_TYPE = 146;
+ int GENERATED_TYPE = 150;
/**
@@ -16338,6 +16486,57 @@ public interface GMFGenPackage extends EPackage {
EAttribute getGenCommandAction_Name();
/**
+ * Returns the meta object for class '{@link org.eclipse.gmf.codegen.gmfgen.GenAction <em>Gen Action</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Gen Action</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenAction
+ * @generated
+ */
+ EClass getGenAction();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.gmf.codegen.gmfgen.GenAction#getQualifiedClassName <em>Qualified Class Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Qualified Class Name</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenAction#getQualifiedClassName()
+ * @see #getGenAction()
+ * @generated
+ */
+ EAttribute getGenAction_QualifiedClassName();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.gmf.codegen.gmfgen.LoadResourceAction <em>Load Resource Action</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Load Resource Action</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.LoadResourceAction
+ * @generated
+ */
+ EClass getLoadResourceAction();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.gmf.codegen.gmfgen.InitDiagramAction <em>Init Diagram Action</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Init Diagram Action</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.InitDiagramAction
+ * @generated
+ */
+ EClass getInitDiagramAction();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.gmf.codegen.gmfgen.CreateShortcutAction <em>Create Shortcut Action</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Create Shortcut Action</em>'.
+ * @see org.eclipse.gmf.codegen.gmfgen.CreateShortcutAction
+ * @generated
+ */
+ EClass getCreateShortcutAction();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.gmf.codegen.gmfgen.GenActionFactoryContributionItem <em>Gen Action Factory Contribution Item</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenAction.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenAction.java
new file mode 100644
index 000000000..9253625e1
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/GenAction.java
@@ -0,0 +1,57 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Gen Action</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * Action that is generated along with diagram action, i.e. there's a template that provides its implementation
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.GenAction#getQualifiedClassName <em>Qualified Class Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenAction()
+ * @model abstract="true"
+ * @generated
+ */
+public interface GenAction extends GenContributionItem {
+ /**
+ * Returns the value of the '<em><b>Qualified Class Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Qualified 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>Qualified Class Name</em>' attribute.
+ * @see #setQualifiedClassName(String)
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getGenAction_QualifiedClassName()
+ * @model
+ * @generated
+ */
+ String getQualifiedClassName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.gmf.codegen.gmfgen.GenAction#getQualifiedClassName <em>Qualified Class Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Qualified Class Name</em>' attribute.
+ * @see #getQualifiedClassName()
+ * @generated
+ */
+ void setQualifiedClassName(String value);
+
+} // GenAction
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/InitDiagramAction.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/InitDiagramAction.java
new file mode 100644
index 000000000..ae356d376
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/InitDiagramAction.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Init Diagram Action</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getInitDiagramAction()
+ * @model
+ * @generated
+ */
+public interface InitDiagramAction extends GenAction {
+} // InitDiagramAction
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/LoadResourceAction.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/LoadResourceAction.java
new file mode 100644
index 000000000..c58bbc0a8
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/LoadResourceAction.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Load Resource Action</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.gmf.codegen.gmfgen.GMFGenPackage#getLoadResourceAction()
+ * @model
+ * @generated
+ */
+public interface LoadResourceAction extends GenAction {
+} // LoadResourceAction
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CreateShortcutActionImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CreateShortcutActionImpl.java
new file mode 100644
index 000000000..eba2c6f7c
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CreateShortcutActionImpl.java
@@ -0,0 +1,66 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.gmf.codegen.gmfgen.CreateShortcutAction;
+import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
+import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Create Shortcut Action</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class CreateShortcutActionImpl extends GenActionImpl implements CreateShortcutAction {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CreateShortcutActionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return GMFGenPackage.eINSTANCE.getCreateShortcutAction();
+ }
+
+ public String getQualifiedClassName() {
+ if (GenCommonBaseImpl.isEmpty(getQualifiedClassNameGen())) {
+ // FIXME > TEMP CODE
+ if (getOwner() != null && getOwner().getEditorGen() != null && getOwner().getEditorGen().getDiagram() != null) {
+ GenDiagram gd = getOwner().getEditorGen().getDiagram();
+ if (gd.eIsSet(GMFGenPackage.eINSTANCE.getShortcuts_CreateShortcutActionClassName())) {
+ return gd.getCreateShortcutActionClassName();
+ }
+ }
+ // FIXME < TEMP CODE
+ String className = "CreateShortcutAction";
+ if (getOwner() != null && getOwner().getEditorGen() != null && getOwner().getEditorGen().getEditor() != null) {
+ final String packageName = getOwner().getEditorGen().getEditor().getPackageName();
+ if (GenCommonBaseImpl.isEmpty(packageName)) {
+ return className;
+ }
+ return packageName + '.' + className;
+ }
+ return className;
+ }
+ return getQualifiedClassNameGen();
+ }
+} //CreateShortcutActionImpl
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java
index d1dea5a27..511a83641 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenFactoryImpl.java
@@ -143,6 +143,9 @@ public class GMFGenFactoryImpl extends EFactoryImpl implements GMFGenFactory {
case GMFGenPackage.GEN_SEPARATOR: return createGenSeparator();
case GMFGenPackage.GEN_CUSTOM_ACTION: return createGenCustomAction();
case GMFGenPackage.GEN_COMMAND_ACTION: return createGenCommandAction();
+ case GMFGenPackage.LOAD_RESOURCE_ACTION: return createLoadResourceAction();
+ case GMFGenPackage.INIT_DIAGRAM_ACTION: return createInitDiagramAction();
+ case GMFGenPackage.CREATE_SHORTCUT_ACTION: return createCreateShortcutAction();
case GMFGenPackage.GEN_ACTION_FACTORY_CONTRIBUTION_ITEM: return createGenActionFactoryContributionItem();
case GMFGenPackage.GEN_MENU_MANAGER: return createGenMenuManager();
case GMFGenPackage.GEN_TOOL_BAR_MANAGER: return createGenToolBarManager();
@@ -1082,6 +1085,36 @@ public class GMFGenFactoryImpl extends EFactoryImpl implements GMFGenFactory {
* <!-- end-user-doc -->
* @generated
*/
+ public LoadResourceAction createLoadResourceAction() {
+ LoadResourceActionImpl loadResourceAction = new LoadResourceActionImpl();
+ return loadResourceAction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InitDiagramAction createInitDiagramAction() {
+ InitDiagramActionImpl initDiagramAction = new InitDiagramActionImpl();
+ return initDiagramAction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CreateShortcutAction createCreateShortcutAction() {
+ CreateShortcutActionImpl createShortcutAction = new CreateShortcutActionImpl();
+ return createShortcutAction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public GenActionFactoryContributionItem createGenActionFactoryContributionItem() {
GenActionFactoryContributionItemImpl genActionFactoryContributionItem = new GenActionFactoryContributionItemImpl();
return genActionFactoryContributionItem;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java
index c4559dc28..cb9265cf2 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GMFGenPackageImpl.java
@@ -863,6 +863,34 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
* <!-- end-user-doc -->
* @generated
*/
+ private EClass genActionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass loadResourceActionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass initDiagramActionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass createShortcutActionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
private EClass genActionFactoryContributionItemEClass = null;
/**
@@ -5950,6 +5978,51 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
* <!-- end-user-doc -->
* @generated
*/
+ public EClass getGenAction() {
+ return genActionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getGenAction_QualifiedClassName() {
+ return (EAttribute)genActionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getLoadResourceAction() {
+ return loadResourceActionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getInitDiagramAction() {
+ return initDiagramActionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCreateShortcutAction() {
+ return createShortcutActionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EClass getGenActionFactoryContributionItem() {
return genActionFactoryContributionItemEClass;
}
@@ -7185,6 +7258,15 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
createEAttribute(genCommandActionEClass, GEN_COMMAND_ACTION__COMMAND_IDENTIFIER);
createEAttribute(genCommandActionEClass, GEN_COMMAND_ACTION__NAME);
+ genActionEClass = createEClass(GEN_ACTION);
+ createEAttribute(genActionEClass, GEN_ACTION__QUALIFIED_CLASS_NAME);
+
+ loadResourceActionEClass = createEClass(LOAD_RESOURCE_ACTION);
+
+ initDiagramActionEClass = createEClass(INIT_DIAGRAM_ACTION);
+
+ createShortcutActionEClass = createEClass(CREATE_SHORTCUT_ACTION);
+
genActionFactoryContributionItemEClass = createEClass(GEN_ACTION_FACTORY_CONTRIBUTION_ITEM);
createEAttribute(genActionFactoryContributionItemEClass, GEN_ACTION_FACTORY_CONTRIBUTION_ITEM__NAME);
@@ -7382,6 +7464,10 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
genSeparatorEClass.getESuperTypes().add(this.getGenContributionItem());
genCustomActionEClass.getESuperTypes().add(this.getGenContributionItem());
genCommandActionEClass.getESuperTypes().add(this.getGenContributionItem());
+ genActionEClass.getESuperTypes().add(this.getGenContributionItem());
+ loadResourceActionEClass.getESuperTypes().add(this.getGenAction());
+ initDiagramActionEClass.getESuperTypes().add(this.getGenAction());
+ createShortcutActionEClass.getESuperTypes().add(this.getGenAction());
genActionFactoryContributionItemEClass.getESuperTypes().add(this.getGenContributionItem());
genMenuManagerEClass.getESuperTypes().add(this.getGenContributionManager());
genMenuManagerEClass.getESuperTypes().add(this.getGenContributionItem());
@@ -8307,6 +8393,15 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
initEAttribute(getGenCommandAction_CommandIdentifier(), ecorePackage.getEString(), "commandIdentifier", null, 1, 1, GenCommandAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getGenCommandAction_Name(), ecorePackage.getEString(), "name", null, 0, 1, GenCommandAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(genActionEClass, GenAction.class, "GenAction", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGenAction_QualifiedClassName(), ecorePackage.getEString(), "qualifiedClassName", null, 0, 1, GenAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(loadResourceActionEClass, LoadResourceAction.class, "LoadResourceAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(initDiagramActionEClass, InitDiagramAction.class, "InitDiagramAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(createShortcutActionEClass, CreateShortcutAction.class, "CreateShortcutAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
initEClass(genActionFactoryContributionItemEClass, GenActionFactoryContributionItem.class, "GenActionFactoryContributionItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getGenActionFactoryContributionItem_Name(), ecorePackage.getEString(), "name", null, 1, 1, GenActionFactoryContributionItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -8541,7 +8636,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
"constraints", "http://www.eclipse.org/gmf/2005/constraints",
"meta", "http://www.eclipse.org/gmf/2005/constraints/meta",
"deprecated", "http://www.eclipse.org/gmf/2006/deprecated"
- });
+ });
}
/**
@@ -8774,7 +8869,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
new String[] {
"ocl", "not actualItem.oclIsKindOf(gmfgen::GenSharedContributionItem)",
"description", "Actual contribution item can\'t be a reference"
- });
+ });
}
/**
@@ -8838,7 +8933,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
source,
new String[] {
"documentation", "Replaced with GenParsers and PredefinedParser"
- });
+ });
}
/**
@@ -8944,7 +9039,7 @@ public class GMFGenPackageImpl extends EPackageImpl implements GMFGenPackage {
new String[] {
"def", "type",
"ocl", "\'ecore::EDoubleObject\'"
- });
+ });
}
} //GMFGenPackageImpl \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenActionImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenActionImpl.java
new file mode 100644
index 000000000..18c9a8bb6
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenActionImpl.java
@@ -0,0 +1,229 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen.impl;
+
+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;
+
+import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
+import org.eclipse.gmf.codegen.gmfgen.GenAction;
+import org.eclipse.gmf.codegen.gmfgen.GenContributionManager;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Gen Action</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.impl.GenActionImpl#getOwner <em>Owner</em>}</li>
+ * <li>{@link org.eclipse.gmf.codegen.gmfgen.impl.GenActionImpl#getQualifiedClassName <em>Qualified Class Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public abstract class GenActionImpl extends EObjectImpl implements GenAction {
+ /**
+ * The default value of the '{@link #getQualifiedClassName() <em>Qualified Class Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getQualifiedClassName()
+ * @generated
+ * @ordered
+ */
+ protected static final String QUALIFIED_CLASS_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getQualifiedClassName() <em>Qualified Class Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getQualifiedClassName()
+ * @generated
+ * @ordered
+ */
+ protected String qualifiedClassName = QUALIFIED_CLASS_NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected GenActionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return GMFGenPackage.eINSTANCE.getGenAction();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public GenContributionManager getOwner() {
+ if (eContainerFeatureID != GMFGenPackage.GEN_ACTION__OWNER) return null;
+ return (GenContributionManager)eContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getQualifiedClassNameGen() {
+ return qualifiedClassName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setQualifiedClassName(String newQualifiedClassName) {
+ String oldQualifiedClassName = qualifiedClassName;
+ qualifiedClassName = newQualifiedClassName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GMFGenPackage.GEN_ACTION__QUALIFIED_CLASS_NAME, oldQualifiedClassName, qualifiedClassName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_ACTION__OWNER:
+ if (eInternalContainer() != null)
+ msgs = eBasicRemoveFromContainer(msgs);
+ return eBasicSetContainer(otherEnd, GMFGenPackage.GEN_ACTION__OWNER, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_ACTION__OWNER:
+ return eBasicSetContainer(null, GMFGenPackage.GEN_ACTION__OWNER, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
+ switch (eContainerFeatureID) {
+ case GMFGenPackage.GEN_ACTION__OWNER:
+ return eInternalContainer().eInverseRemove(this, GMFGenPackage.GEN_CONTRIBUTION_MANAGER__ITEMS, GenContributionManager.class, msgs);
+ }
+ return super.eBasicRemoveFromContainerFeature(msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_ACTION__OWNER:
+ return getOwner();
+ case GMFGenPackage.GEN_ACTION__QUALIFIED_CLASS_NAME:
+ return getQualifiedClassName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_ACTION__QUALIFIED_CLASS_NAME:
+ setQualifiedClassName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_ACTION__QUALIFIED_CLASS_NAME:
+ setQualifiedClassName(QUALIFIED_CLASS_NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case GMFGenPackage.GEN_ACTION__OWNER:
+ return getOwner() != null;
+ case GMFGenPackage.GEN_ACTION__QUALIFIED_CLASS_NAME:
+ return QUALIFIED_CLASS_NAME_EDEFAULT == null ? qualifiedClassName != null : !QUALIFIED_CLASS_NAME_EDEFAULT.equals(qualifiedClassName);
+ }
+ 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(" (qualifiedClassName: ");
+ result.append(qualifiedClassName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //GenActionImpl
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/InitDiagramActionImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/InitDiagramActionImpl.java
new file mode 100644
index 000000000..8983bcaab
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/InitDiagramActionImpl.java
@@ -0,0 +1,66 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
+import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
+import org.eclipse.gmf.codegen.gmfgen.InitDiagramAction;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Init Diagram Action</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class InitDiagramActionImpl extends GenActionImpl implements InitDiagramAction {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected InitDiagramActionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return GMFGenPackage.eINSTANCE.getInitDiagramAction();
+ }
+
+ public String getQualifiedClassName() {
+ if (GenCommonBaseImpl.isEmpty(getQualifiedClassNameGen())) {
+ // FIXME > TEMP CODE
+ if (getOwner() != null && getOwner().getEditorGen() != null && getOwner().getEditorGen().getDiagram() != null) {
+ GenDiagram gd = getOwner().getEditorGen().getDiagram();
+ if (gd.eIsSet(GMFGenPackage.eINSTANCE.getEditorCandies_InitDiagramFileActionClassName())) {
+ return gd.getInitDiagramFileActionClassName();
+ }
+ }
+ // FIXME < TEMP CODE
+ String className = "InitDiagramAction";
+ if (getOwner() != null && getOwner().getEditorGen() != null && getOwner().getEditorGen().getEditor() != null) {
+ final String packageName = getOwner().getEditorGen().getEditor().getPackageName();
+ if (GenCommonBaseImpl.isEmpty(packageName)) {
+ return className;
+ }
+ return packageName + '.' + className;
+ }
+ return className;
+ }
+ return getQualifiedClassNameGen();
+ }
+} //InitDiagramActionImpl
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/LoadResourceActionImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/LoadResourceActionImpl.java
new file mode 100644
index 000000000..730b358e9
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/LoadResourceActionImpl.java
@@ -0,0 +1,66 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.gmf.codegen.gmfgen.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
+import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
+import org.eclipse.gmf.codegen.gmfgen.LoadResourceAction;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Load Resource Action</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class LoadResourceActionImpl extends GenActionImpl implements LoadResourceAction {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected LoadResourceActionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return GMFGenPackage.eINSTANCE.getLoadResourceAction();
+ }
+
+ public String getQualifiedClassName() {
+ if (GenCommonBaseImpl.isEmpty(getQualifiedClassNameGen())) {
+ // FIXME > TEMP CODE
+ if (getOwner() != null && getOwner().getEditorGen() != null && getOwner().getEditorGen().getDiagram() != null) {
+ GenDiagram gd = getOwner().getEditorGen().getDiagram();
+ if (gd.eIsSet(GMFGenPackage.eINSTANCE.getEditorCandies_LoadResourceActionClassName())) {
+ return gd.getLoadResourceActionClassName();
+ }
+ }
+ // FIXME < TEMP CODE
+ String className = "LoadResourceAction";
+ if (getOwner() != null && getOwner().getEditorGen() != null && getOwner().getEditorGen().getEditor() != null) {
+ final String packageName = getOwner().getEditorGen().getEditor().getPackageName();
+ if (GenCommonBaseImpl.isEmpty(packageName)) {
+ return className;
+ }
+ return packageName + '.' + className;
+ }
+ return className;
+ }
+ return getQualifiedClassNameGen();
+ }
+} //LoadResourceActionImpl
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java
index 976c7bea2..50d52bcca 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenAdapterFactory.java
@@ -545,6 +545,22 @@ public class GMFGenAdapterFactory extends AdapterFactoryImpl {
return createGenCommandActionAdapter();
}
@Override
+ public Adapter caseGenAction(GenAction object) {
+ return createGenActionAdapter();
+ }
+ @Override
+ public Adapter caseLoadResourceAction(LoadResourceAction object) {
+ return createLoadResourceActionAdapter();
+ }
+ @Override
+ public Adapter caseInitDiagramAction(InitDiagramAction object) {
+ return createInitDiagramActionAdapter();
+ }
+ @Override
+ public Adapter caseCreateShortcutAction(CreateShortcutAction object) {
+ return createCreateShortcutActionAdapter();
+ }
+ @Override
public Adapter caseGenActionFactoryContributionItem(GenActionFactoryContributionItem object) {
return createGenActionFactoryContributionItemAdapter();
}
@@ -2237,6 +2253,62 @@ public class GMFGenAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.GenAction <em>Gen Action</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.gmf.codegen.gmfgen.GenAction
+ * @generated
+ */
+ public Adapter createGenActionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.LoadResourceAction <em>Load Resource Action</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.gmf.codegen.gmfgen.LoadResourceAction
+ * @generated
+ */
+ public Adapter createLoadResourceActionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.InitDiagramAction <em>Init Diagram Action</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.gmf.codegen.gmfgen.InitDiagramAction
+ * @generated
+ */
+ public Adapter createInitDiagramActionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.CreateShortcutAction <em>Create Shortcut Action</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.gmf.codegen.gmfgen.CreateShortcutAction
+ * @generated
+ */
+ public Adapter createCreateShortcutActionAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.gmf.codegen.gmfgen.GenActionFactoryContributionItem <em>Gen Action Factory Contribution Item</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java
index 5cb522be2..3fee3922a 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/util/GMFGenSwitch.java
@@ -930,6 +930,37 @@ public class GMFGenSwitch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
+ case GMFGenPackage.GEN_ACTION: {
+ GenAction genAction = (GenAction)theEObject;
+ T result = caseGenAction(genAction);
+ if (result == null) result = caseGenContributionItem(genAction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case GMFGenPackage.LOAD_RESOURCE_ACTION: {
+ LoadResourceAction loadResourceAction = (LoadResourceAction)theEObject;
+ T result = caseLoadResourceAction(loadResourceAction);
+ if (result == null) result = caseGenAction(loadResourceAction);
+ if (result == null) result = caseGenContributionItem(loadResourceAction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case GMFGenPackage.INIT_DIAGRAM_ACTION: {
+ InitDiagramAction initDiagramAction = (InitDiagramAction)theEObject;
+ T result = caseInitDiagramAction(initDiagramAction);
+ if (result == null) result = caseGenAction(initDiagramAction);
+ if (result == null) result = caseGenContributionItem(initDiagramAction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case GMFGenPackage.CREATE_SHORTCUT_ACTION: {
+ CreateShortcutAction createShortcutAction = (CreateShortcutAction)theEObject;
+ T result = caseCreateShortcutAction(createShortcutAction);
+ if (result == null) result = caseGenAction(createShortcutAction);
+ if (result == null) result = caseGenContributionItem(createShortcutAction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
case GMFGenPackage.GEN_ACTION_FACTORY_CONTRIBUTION_ITEM: {
GenActionFactoryContributionItem genActionFactoryContributionItem = (GenActionFactoryContributionItem)theEObject;
T result = caseGenActionFactoryContributionItem(genActionFactoryContributionItem);
@@ -2757,6 +2788,66 @@ public class GMFGenSwitch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Action</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen Action</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenAction(GenAction object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Load Resource Action</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>Load Resource Action</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLoadResourceAction(LoadResourceAction object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Init Diagram Action</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>Init Diagram Action</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseInitDiagramAction(InitDiagramAction object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Create Shortcut Action</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>Create Shortcut Action</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCreateShortcutAction(CreateShortcutAction object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Gen Action Factory Contribution Item</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;

Back to the top