Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problems with generating diagram code with GMF 2.0
Problems with generating diagram code with GMF 2.0 [message #144626] Sun, 29 July 2007 00:28 Go to next message
Tarek is currently offline TarekFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,

I used Eclipse 3.2.2, EMF 2.2, and GMF 1.0.3 to create EMF/GMF Editors.
The Editors are working fine.

however, I want to use the latest JET2 build, which requires Eclipse 3.3
and EMF 2.3, to generate Java code from the file produced by the editors.

so, I have to use Eclipse 3.3 to be able to use the latest JET2 with the
fixed bugs.this means, I have to use GMF 2.0 too.

I dowanloaded the latest version of Eclipse 3.3, GMF 2.0 and all its
requirements listed in its webpage.

The problem is:
when I wanted to generate Diagrame code from my *.gmfgen I got the
following error message:

Problems while generating code
Exception (Couldn't find operation 'isSuperTypeOf(EClass)' for EEnum.:in
xpt::editor::GenDiagram on line 35
'(EClass)gf.ecoreFeature.eType.isSuperTypeOf(eType)') while generating code
Couldn't find operation 'isSuperTypeOf(EClass)' for EEnum.:in
xpt::editor::GenDiagram on line 35
'(EClass)gf.ecoreFeature.eType.isSuperTypeOf(eType)'


where the line 35 is:

<elementType
line 35 xsi:type="gmfgen:MetamodelType"
editHelperClassName="StateEditHelper"/>


I also tried to use my models created using Eclipse 3.2.2 and GMF 1.0.3 by
importing the models in Eclipse 3.3 and use "Migrate to GMF 2.0" for
gmfgraph, .gmfmap and .gmfgen but I got the same error message.

BTW: I used XML schema to produce my EMF model. also here is my *.ecore
model to give you an idea about my model:

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
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="xmachine"
nsURI="http://www.eclipse.org/xmachine" nsPrefix="xmachine">
<eClassifiers xsi:type="ecore:EDataType" name="AllowedChar"
instanceClassName="java.lang.String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="allowed-char"/>
<details key="baseType"
value="http://www.eclipse.org/emf/2003/XMLType#string"/>
<details key="pattern" value="([a-zA-Z0-9_])"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="AllowedString"
instanceClassName="java.lang.String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="allowed-string"/>
<details key="baseType"
value="http://www.eclipse.org/emf/2003/XMLType#string"/>
<details key="pattern" value="([a-zA-Z0-9_])*"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ArithmeticBinaryType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="arithmetic-binary_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="arg"
lowerBound="1" eType="#//ListElement"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="arg"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="arithmeticOperator" lowerBound="1"
eType="#//ArithmeticOperator" defaultValueLiteral="plus"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="arithmetic-operator"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="arithmeticExpression" lowerBound="1"
eType="#//ArithmeticExpressionType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="arithmetic-expression"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ArithmeticExpressionType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="arithmetic-expression_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="arg"
eType="#//ListElement"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="arg"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="arithmeticBinary" eType="#//ArithmeticBinaryType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="arithmetic-binary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ArithmeticOperator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="arithmetic-operator"/>
</eAnnotations>
<eLiterals name="plus"/>
<eLiterals name="minus" value="1"/>
<eLiterals name="multiply" value="2"/>
<eLiterals name="divide" value="3"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="ArithmeticOperatorObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="arithmetic-operator:Object"/>
<details key="baseType" value="arithmetic-operator"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BagExpressionType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag-expression_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="bag"
eType="#//BagType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="bag"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="bagExpressionUnary" eType="#//BagExpressionUnaryType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="bag-expression-unary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="expressionBinary" eType="#//ExpressionBinaryType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="expression-binary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BagExpressionUnaryType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag-expression-unary_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="bagOperatorUnary" lowerBound="1"
eType="#//BagOperatorUnary" defaultValueLiteral="cardinality"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="bag-operator-unary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="bagExpression"
lowerBound="1"
eType="#//BagExpressionType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="bag-expression"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BagOfType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag-of_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="builtinType"
eType="#//BuiltinType"
defaultValueLiteral="integer" unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="builtin-type"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="type"
eType="#//Type" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="type"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="bag"
eType="#//BagType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="bag"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BagOperator"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag-operator"/>
<details key="memberTypes" value="bag-operator-binary
bag-operator-unary"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BagOperatorBinary">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag-operator-binary"/>
</eAnnotations>
<eLiterals name="intersection"/>
<eLiterals name="multiplicity" value="1"/>
<eLiterals name="addElement" value="2" literal="add_element"/>
<eLiterals name="deleteElement" value="3" literal="delete_element"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BagOperatorBinaryObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag-operator-binary:Object"/>
<details key="baseType" value="bag-operator-binary"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BagOperatorUnary">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag-operator-unary"/>
</eAnnotations>
<eLiterals name="cardinality"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BagOperatorUnaryObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag-operator-unary:Object"/>
<details key="baseType" value="bag-operator-unary"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BagType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="bag_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="bagElement"
lowerBound="1"
upperBound="-1" eType="#//ListElement" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="bag-element"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BasicTypesType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="basic-types_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" lowerBound="1"
upperBound="-1" eType="#//AllowedString">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BinaryType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="binary_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="arg"
lowerBound="1" eType="#//ListElement"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="arg"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator"
lowerBound="1"
eType="#//OperatorBinary" defaultValueLiteral="concat"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="operator"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="expressionBinary" lowerBound="1"
eType="#//ExpressionBinaryType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="expression-binary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BodyType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="body_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="expression"
lowerBound="1"
eType="#//ExpressionType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="expression"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="booleanOperator" lowerBound="1"
eType="#//BooleanOperator" defaultValueLiteral="&amp;&amp;"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-operator"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="where"
lowerBound="1" eType="#//WhereType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="where"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="Boolean"
instanceClassName="boolean">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean"/>
<details key="baseType"
value="http://www.eclipse.org/emf/2003/XMLType#boolean"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass"
name="BooleanCollectionExpressionBinaryType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name"
value="boolean-collection-expression-binary_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference"
name="collectionElement" lowerBound="1"
eType="#//ListElement" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="collection-element"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="booleanCollectionOperatorBinary"
lowerBound="1" eType="#//BooleanCollectionOperatorBinary"
defaultValueLiteral="union"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-collection-operator-binary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="collection"
lowerBound="1"
eType="#//CollectionType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="collection"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass"
name="BooleanCollectionExpressionUnaryType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name"
value="boolean-collection-expression-unary_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="booleanCollectionOperatorUnary"
lowerBound="1" eType="#//BooleanCollectionOperatorUnary"
defaultValueLiteral="is_empty"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-collection-operator-unary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="collection"
lowerBound="1"
eType="#//CollectionType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="collection"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum"
name="BooleanCollectionOperatorBinary">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-collection-operator-binary"/>
</eAnnotations>
<eLiterals name="union"/>
<eLiterals name="belongs" value="1"/>
<eLiterals name="notBelongs" value="2" literal="not_belongs"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType"
name="BooleanCollectionOperatorBinaryObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name"
value="boolean-collection-operator-binary:Object"/>
<details key="baseType" value="boolean-collection-operator-binary"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum"
name="BooleanCollectionOperatorUnary">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-collection-operator-unary"/>
</eAnnotations>
<eLiterals name="isEmpty" literal="is_empty"/>
<eLiterals name="notEmpty" value="1" literal="not_empty"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType"
name="BooleanCollectionOperatorUnaryObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name"
value="boolean-collection-operator-unary:Object"/>
<details key="baseType" value="boolean-collection-operator-unary"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BooleanComparator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-comparator"/>
</eAnnotations>
<eLiterals name="gt"/>
<eLiterals name="lt" value="1"/>
<eLiterals name="gtequal" value="2"/>
<eLiterals name="ltequal" value="3"/>
<eLiterals name="equals" value="4"/>
<eLiterals name="notEqual" value="5" literal="not_equal"/>
<eLiterals name="belongs" value="6"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BooleanComparatorObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-comparator:Object"/>
<details key="baseType" value="boolean-comparator"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass"
name="BooleanExpressionComparisonType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-expression-comparison_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="identifier"
lowerBound="1"
eType="#//IdentifierType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="identifier"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="booleanComparator" lowerBound="1"
eType="#//BooleanComparator" defaultValueLiteral="gt"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-comparator"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="identifier1"
lowerBound="1"
eType="#//IdentifierType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="identifier"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BooleanExpressionType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-expression_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="term"
eType="#//TermType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="term"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="booleanCollectionExpressionBinary"
eType="#//BooleanCollectionExpressionBinaryType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-collection-expression-binary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="booleanCollectionExpressionUnary"
eType="#//BooleanCollectionExpressionUnaryType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-collection-expression-unary"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="booleanExpressionComparison"
eType="#//BooleanExpressionComparisonType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-expression-comparison"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BooleanExpressionUnaryType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-expression-unary_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="identifier"
lowerBound="1"
eType="#//IdentifierType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="identifier"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BooleanObject"
instanceClassName="java.lang.Boolean">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean:Object"/>
<details key="baseType" value="boolean"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BooleanOperator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-operator"/>
</eAnnotations>
<eLiterals name="_" literal="&amp;&amp;"/>
<eLiterals name="_1" value="1" literal="||"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BooleanOperatorObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="boolean-operator:Object"/>
<details key="baseType" value="boolean-operator"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BuiltinType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="builtin-type"/>
</eAnnotations>
<eLiterals name="integer"/>
<eLiterals name="natural0" value="1"/>
<eLiterals name="natural" value="2"/>
<eLiterals name="real" value="3"/>
<eLiterals name="char" value="4"/>
<eLiterals name="boolean" value="5"/>
<eLiterals name="true" value="6"/>
<eLiterals name="false" value="7"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BuiltinType1">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="builtin_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="integer"
eType="#//Integer">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="integer"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="natural0"
eType="#//Natural0">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="natural0"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="natural"
eType="#//Natural">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="natural"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="real"
eType="#//Real">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="real"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="boolean"
eType="#//Boolean"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="true"
eType="#//True">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="true"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="false"
eType="#//False">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="false"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="char"
eType="#//Char">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="char"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BuiltinTypeObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="builtin-type:Object"/>
<details key="baseType" value="builtin-type"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="Char"
instanceClassName="java.lang.String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="char"/>
<details key="baseType"
value="http://www.eclipse.org/emf/2003/XMLType#string"/>
<details key="length" value="1"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="CollectionType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="collection_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="sequence"
eType="#//SequenceType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="sequence"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="set"
eType="#//Set" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="set"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="bag"
eType="#//BagType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="bag"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="variable"
eType="#//AllowedString">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="variable"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="type"
eType="#//Type" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="type"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="basicTypes"
eType="#//BasicTypesType"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="basic-types"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="CompoundExpressionType">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="compound-expression_._type"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference"
name="booleanExpression" lowerBound="1"
eType="#//BooleanExpressionType" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-expression"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="booleanOperator" lowerBound="1"
eType="#//BooleanOperator" defaultValueLiteral="&amp;&amp;"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="boolean-operator"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="condition"
lowerBound="1"
eType="#//ConditionType" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="condition"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ConditionType">
<eAnnotations
sou
Re: Problems with generating diagram code with GMF 2.0 [message #144677 is a reply to message #144626] Mon, 30 July 2007 08:16 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Tarek,

> Problems while generating code
> Exception (Couldn't find operation 'isSuperTypeOf(EClass)' for
> EEnum.:in
> xpt::editor::GenDiagram on line 35
> '(EClass)gf.ecoreFeature.eType.isSuperTypeOf(eType)') while generating
> code

Looks like an error in xpand templates. Can you please submitt bugzilla entry
for it?

-----------------
Alex Shatalin
Re: Problems with generating diagram code with GMF 2.0 [message #144692 is a reply to message #144677] Mon, 30 July 2007 09:10 Go to previous messageGo to next message
Tarek is currently offline TarekFriend
Messages: 19
Registered: July 2009
Junior Member
Dear Alex Shatalin:

Thanks for your reply.

I have submitted a Bugzilla entry. the Bug#: 198238.

My question is:
how long it will take to fix this bug?(I am doing my university
dissertation, and I do not have time).

Is there a vesrion of Eclipse 3.3 that does not have this bug and also
works with the latest JET2 build, so I can use it.

Thank you in advance

Tarek
Re: Problems with generating diagram code with GMF 2.0 [message #144729 is a reply to message #144692] Mon, 30 July 2007 12:16 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Tarek,

As a quick workaround, I may suggest to add to the GenDiagram.ext file
the following declaration:

private boolean isSuperTypeOf(ecore::EClassifier one, ecore::EClassifier
another) :
false
;

This is not a permanent fix, but could at least let you proceed without
waiting for us to fix this bug.

Sorry for the inconvenience and

Best regards,
Boris


Tarek wrote:
> Dear Alex Shatalin:
>
> Thanks for your reply.
>
> I have submitted a Bugzilla entry. the Bug#: 198238.
>
> My question is:
> how long it will take to fix this bug?(I am doing my university
> dissertation, and I do not have time).
>
> Is there a vesrion of Eclipse 3.3 that does not have this bug and also
> works with the latest JET2 build, so I can use it.
>
> Thank you in advance
>
> Tarek
>
Re: Problems with generating diagram code with GMF 2.0 [message #144803 is a reply to message #144729] Mon, 30 July 2007 17:20 Go to previous message
Tarek is currently offline TarekFriend
Messages: 19
Registered: July 2009
Junior Member
Dear Boris:

Thank you very nuch for your help, I really appreciate that.

Best regards

Tarek
Previous Topic:Access EditPart's model within a LayoutManager
Next Topic:EdgeEditParts and NodeEditParts
Goto Forum:
  


Current Time: Fri Dec 27 18:54:26 GMT 2024

Powered by FUDForum. Page generated in 0.04492 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top