Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Shapes example
Shapes example [message #127944] Mon, 21 May 2007 15:20 Go to next message
Eclipse UserFriend
Originally posted by: starrynighter.hotmail.com

I followed the instructions in
http://www-128.ibm.com/developerworks/library/os-ecl-gmf/ind ex.html (Learn
Eclipse GMF in 15 minutes by Chris Aniszczyk) as best as I could but upon
mapping the 3 models together I got the error:
------------------------------------------------------------ ------------------------------------------------------------ -------
Diagnosis of
org.eclipse.gmf.mappings.impl.MappingImpl@47de8f{platform:/resource/shapesEMF/model/shapes.gmfmap#/}



The required feature 'diagramLabel' of
'org.eclipse.gmf.mappings.impl.LabelMappingImpl@ace533 {platform:/resource/shapesEMF/model/shapes.gmfmap#//@nodes.0 /@ownedChild/@labelMappings.0}'
must be set

The required feature 'diagramLabel' of
'org.eclipse.gmf.mappings.impl.LabelMappingImpl@334eca {platform:/resource/shapesEMF/model/shapes.gmfmap#//@nodes.1 /@ownedChild/@labelMappings.0}'
must be set


------------------------------------------------------------ ------------------------------------------------------------ -------

1 - can anyone provide a brief description of what I need to do to correct
this?

2 - Chris says "Note: If you're having trouble with this task, there is a
sample plug-in download that has all the models already made for you."
- can anyone point me to where this download is? - then I can compare it to
what I have done.

Thanks, Martyn.
Re: Shapes example [message #128030 is a reply to message #127944] Tue, 22 May 2007 06:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olegko.web.de

M Barry wrotes:
> I followed the instructions in
> http://www-128.ibm.com/developerworks/library/os-ecl-gmf/ind ex.html (Learn
> Eclipse GMF in 15 minutes by Chris Aniszczyk) as best as I could but upon
> mapping the 3 models together I got the error:
> ------------------------------------------------------------ ------------------------------------------------------------ -------
> Diagnosis of
> org.eclipse.gmf.mappings.impl.MappingImpl@47de8f{platform:/resource/shapesEMF/model/shapes.gmfmap#/}
>
>
>
> The required feature 'diagramLabel' of
> 'org.eclipse.gmf.mappings.impl.LabelMappingImpl@ace533 {platform:/resource/shapesEMF/model/shapes.gmfmap#//@nodes.0 /@ownedChild/@labelMappings.0}'
> must be set
>
> The required feature 'diagramLabel' of
> 'org.eclipse.gmf.mappings.impl.LabelMappingImpl@334eca {platform:/resource/shapesEMF/model/shapes.gmfmap#//@nodes.1 /@ownedChild/@labelMappings.0}'
> must be set
>
>
> ------------------------------------------------------------ ------------------------------------------------------------ -------
>
> 1 - can anyone provide a brief description of what I need to do to correct
> this?
>
> 2 - Chris says "Note: If you're having trouble with this task, there is a
> sample plug-in download that has all the models already made for you."
> - can anyone point me to where this download is? - then I can compare it to
> what I have done.
>
> Thanks, Martyn.
>

You got an error while combining your three models (in the Dashbaord for
example) or after transforming into gmfgen ?
If you can't transform into gmfgen then:

Go into your gmfmap, under Mapping .. Top Node Mapping ..Label Mapping
look into the Properties view an you can see that for the Property
"Diagram Label" nothing is selected. Click on Value and voila there is
an selectable PopUp where you can select a "Diagram Label iDontKnow_name"

Maybe that helps.
Re: Shapes example [message #128043 is a reply to message #127944] Tue, 22 May 2007 05:53 Go to previous messageGo to next message
Eclipse UserFriend
or just use exactly the same versions of GMF / EMF / GEF & eclipse as he
did.

-stefan

M Barry schrieb:
> I followed the instructions in
> http://www-128.ibm.com/developerworks/library/os-ecl-gmf/ind ex.html (Learn
> Eclipse GMF in 15 minutes by Chris Aniszczyk) as best as I could but upon
> mapping the 3 models together I got the error:
> ------------------------------------------------------------ ------------------------------------------------------------ -------
> Diagnosis of
> org.eclipse.gmf.mappings.impl.MappingImpl@47de8f{platform:/resource/shapesEMF/model/shapes.gmfmap#/}
>
>
>
> The required feature 'diagramLabel' of
> 'org.eclipse.gmf.mappings.impl.LabelMappingImpl@ace533 {platform:/resource/shapesEMF/model/shapes.gmfmap#//@nodes.0 /@ownedChild/@labelMappings.0}'
> must be set
>
> The required feature 'diagramLabel' of
> 'org.eclipse.gmf.mappings.impl.LabelMappingImpl@334eca {platform:/resource/shapesEMF/model/shapes.gmfmap#//@nodes.1 /@ownedChild/@labelMappings.0}'
> must be set
>
>
> ------------------------------------------------------------ ------------------------------------------------------------ -------
>
> 1 - can anyone provide a brief description of what I need to do to correct
> this?
>
> 2 - Chris says "Note: If you're having trouble with this task, there is a
> sample plug-in download that has all the models already made for you."
> - can anyone point me to where this download is? - then I can compare it to
> what I have done.
>
> Thanks, Martyn.
>
>
Re: Shapes example [message #128947 is a reply to message #128030] Wed, 23 May 2007 12:55 Go to previous message
Eclipse UserFriend
Originally posted by: zhanglei07.sei.pku.edu.cn

I aslo read this article and met this problem,
my solution is:
in your mapping file, directly delete these two diagramlabel.

Since in the article, he did not define a label figure in the "graphmodel"
so, the wizard can't find a label figure for the diagram label
then, error occurs.

Maybe this helps:)

zhanglei07@sei.pku.edu.cn


"Oleg Koffmane" <olegko@web.de> 写入消息
news:f2udrt$8t0$1@build.eclipse.org...
>M Barry wrotes:
>> I followed the instructions in
>> http://www-128.ibm.com/developerworks/library/os-ecl-gmf/ind ex.html
>> (Learn Eclipse GMF in 15 minutes by Chris Aniszczyk) as best as I could
>> but upon mapping the 3 models together I got the error:
>> ------------------------------------------------------------ ------------------------------------------------------------ -------
>> Diagnosis of
>> org.eclipse.gmf.mappings.impl.MappingImpl@47de8f{platform:/resource/shapesEMF/model/shapes.gmfmap#/}
>>
>>
>>
>> The required feature 'diagramLabel' of
>> 'org.eclipse.gmf.mappings.impl.LabelMappingImpl@ace533 {platform:/resource/shapesEMF/model/shapes.gmfmap#//@nodes.0 /@ownedChild/@labelMappings.0}'
>> must be set
>>
>> The required feature 'diagramLabel' of
>> 'org.eclipse.gmf.mappings.impl.LabelMappingImpl@334eca {platform:/resource/shapesEMF/model/shapes.gmfmap#//@nodes.1 /@ownedChild/@labelMappings.0}'
>> must be set
>>
>>
>> ------------------------------------------------------------ ------------------------------------------------------------ -------
>>
>> 1 - can anyone provide a brief description of what I need to do to
>> correct this?
>>
>> 2 - Chris says "Note: If you're having trouble with this task, there is a
>> sample plug-in download that has all the models already made for you."
>> - can anyone point me to where this download is? - then I can compare it
>> to what I have done.
>>
>> Thanks, Martyn.
>
> You got an error while combining your three models (in the Dashbaord for
> example) or after transforming into gmfgen ?
> If you can't transform into gmfgen then:
>
> Go into your gmfmap, under Mapping .. Top Node Mapping ..Label Mapping
> look into the Properties view an you can see that for the Property
> "Diagram Label" nothing is selected. Click on Value and voila there is an
> selectable PopUp where you can select a "Diagram Label iDontKnow_name"
>
> Maybe that helps.
Previous Topic:Custom ConnectionAnchor
Next Topic:Problems with M7
Goto Forum:
  


Current Time: Mon May 12 16:57:31 EDT 2025

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

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

Back to the top