Design Label uses GMF icons instead of XXX.edit icons [message #537873] |
Fri, 04 June 2010 00:06 |
Jevon Messages: 164 Registered: July 2009 |
Senior Member |
|
|
Hi,
I had an issue in my editor where certain elements were not displaying
the expected icons (i.e. from generated XXX.edit/icons), but were still
displaying correctly in the tool palette.
After much debugging, I found the problem is that even though I had
specified the Label to have Element Icon=true in the .gmfgraph, I had
set the Label as a Design Label in the .gmfmap.
As a result, the generated LabelEditPart#getParserElement() was
returning getModel() rather than resolveSemanticElement(), and
consequently I think the GMF editor was rendering the icon from the GMF
..edit plugin, and not the expected element from my XXX.edit plugin.
Changing the label to a normal Label Mapping resolved the issue.
Is this expected behaviour? Perhaps the Wiki should be updated to
specify that Design Labels will only use GMF icons, and not XXX.edit
icons. http://wiki.eclipse.org/GMF_Labels
Cheers
Jevon
|
|
|
Powered by
FUDForum. Page generated in 0.04094 seconds