Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Compartment using multiple EString
Compartment using multiple EString [message #59761] Thu, 05 October 2006 15:22 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Polylines as Nodes
Next Topic:Removing the popup menus
Goto Forum:
  


Current Time: Sun May 11 14:03:32 EDT 2025

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

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

Back to the top