Compartment using multiple EString [message #59761] |
Thu, 05 October 2006 15:22  |
Eclipse User |
|
|
|
Hi,
I have a problem where in I want to add a list of Estring in a gmf
compartment. The problem I face is I can add EClass objects as Nodes but not
Estring objects when I map it. The map allows only user defined EClass and
not EStrings. I can encapsulate EString inside a EClass, but I dont want to
do it for many reasons:
My ecore model, which I'm trying to map
<eClassifiers xsi:type="ecore:EClass" name="AttributeInitialValue" >
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeName"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeValues"
lowerBound="1" upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
I have a rectangle for AttributeInitialValue and a label for attributeName.
I like to have a compartment for adding mulitple string values for
attributeValues. But I cannot map to a EString, the gmf framework expects a
EClass to be placed inside a container.
Any Suggesstions ?
-Veda
|
|
|
Re: Compartment using multiple EString [message #59812 is a reply to message #59761] |
Thu, 05 October 2006 16:06  |
Eclipse User |
|
|
|
You can't describe this with .gmfmap. The usecase (attribute values
visualized as children) doesn't seem to be frequent enough, so we decided
not to complicate model. You might want to file a bugzilla for us to treat
it with more attention.
Right now you'll need some manual coding to support the usecase.
Artem
"Veda P Narayanan" <Narayanan_Veda@emc.com> wrote in message
news:eg3m2a$nk2$1@utils.eclipse.org...
> Hi,
> I have a problem where in I want to add a list of Estring in a gmf
> compartment. The problem I face is I can add EClass objects as Nodes but
> not Estring objects when I map it. The map allows only user defined EClass
> and not EStrings. I can encapsulate EString inside a EClass, but I dont
> want to do it for many reasons:
>
> My ecore model, which I'm trying to map
> <eClassifiers xsi:type="ecore:EClass" name="AttributeInitialValue" >
>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeName"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeValues"
> lowerBound="1" upperBound="-1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>
> </eClassifiers>
>
> I have a rectangle for AttributeInitialValue and a label for
> attributeName. I like to have a compartment for adding mulitple string
> values for attributeValues. But I cannot map to a EString, the gmf
> framework expects a EClass to be placed inside a container.
>
> Any Suggesstions ?
>
>
>
> -Veda
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03102 seconds