Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » editing properties which are of a complex type
editing properties which are of a complex type [message #213006] Mon, 08 December 2008 17:49
Eclipse UserFriend
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
Previous Topic:Generated SemanticEditPolicy
Next Topic:Changing Generated Icons in GMF editor
Goto Forum:
  


Current Time: Sun May 11 19:39:23 EDT 2025

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

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

Back to the top