editing properties which are of a complex type [message #213006] |
Mon, 08 December 2008 17:49 |
Eclipse User |
|
|
|
I have a class called Relationship which has a containment relationship
with another class FlowConstraint. Everything works well, but now I have a
requirement in which when the user selects the relationship object in the
diagram, I should be able to edit its properties. But in this case, the
attribute being a complex type, I am not sure how I can edit the string
attribute inside the Flowconstraint class. The ecore file I am using is
seen below. I am not sure if it is the right way to do.
Any pointers would be appreciated.
<eClassifiers xsi:type="ecore:EClass" name="Relationship">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Relationship"/>
<details key="kind" value="ElementOnly"/>
</eAnnotations>
.......
.......
<eStructuralFeatures xsi:type="ecore:EReference"
name="flowConstraints" upperBound="-1"
eType="#//FlowConstraint" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="flowConstraints"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FlowConstraint">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pass"
unique="false" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String"
defaultValueLiteral="">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="pass"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
Thanks in advance
Jeevan
|
|
|
Powered by
FUDForum. Page generated in 0.02948 seconds