Shapes example [message #127944] |
Mon, 21 May 2007 15:20  |
Eclipse User |
|
|
|
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 #128947 is a reply to message #128030] |
Wed, 23 May 2007 12:55  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04022 seconds