From 31fe769d6504addd0b9df0a5b3e757fac904e748 Mon Sep 17 00:00:00 2001
From: David Trachtenherz <trachtenherz@fortiss.org>
Date: Thu, 1 Dec 2011 13:02:18 +0000
Subject: [PATCH] - toString for state automata, components - method
 specificationDescription: returns short description of
 IModelElementSpecification, e. g. "State automaton" for StateAutomaton.

refs 337
---
 org.fortiss.tooling.base/trunk/model/base.ecore    | 1 +
 org.fortiss.tooling.base/trunk/model/base.genmodel | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/org.fortiss.tooling.base/trunk/model/base.ecore b/org.fortiss.tooling.base/trunk/model/base.ecore
index 115d1e239..067e00006 100644
--- a/org.fortiss.tooling.base/trunk/model/base.ecore
+++ b/org.fortiss.tooling.base/trunk/model/base.ecore
@@ -27,6 +27,7 @@
       <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
         <details key="documentation" value="Super class of model element specifications. Such specifications provide additional plugable properties."/>
       </eAnnotations>
+      <eOperations name="specificationDescription" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
     </eClassifiers>
     <eClassifiers xsi:type="ecore:EClass" name="IModelElementReference" abstract="true"
         interface="true">
diff --git a/org.fortiss.tooling.base/trunk/model/base.genmodel b/org.fortiss.tooling.base/trunk/model/base.genmodel
index 39ca72659..ce92a6c08 100644
--- a/org.fortiss.tooling.base/trunk/model/base.genmodel
+++ b/org.fortiss.tooling.base/trunk/model/base.genmodel
@@ -15,7 +15,9 @@
         <genFeatures notify="false" createChild="false" propertySortChoices="true"
             ecoreFeature="ecore:EReference base.ecore#//element/IModelElement/referencedBy"/>
       </genClasses>
-      <genClasses image="false" ecoreClass="base.ecore#//element/IModelElementSpecification"/>
+      <genClasses image="false" ecoreClass="base.ecore#//element/IModelElementSpecification">
+        <genOperations ecoreOperation="base.ecore#//element/IModelElementSpecification/specificationDescription"/>
+      </genClasses>
       <genClasses image="false" ecoreClass="base.ecore#//element/IModelElementReference">
         <genFeatures notify="false" createChild="false" propertySortChoices="true"
             ecoreFeature="ecore:EReference base.ecore#//element/IModelElementReference/reference"/>
-- 
GitLab