Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Design Label uses GMF icons instead of XXX.edit icons
Design Label uses GMF icons instead of XXX.edit icons [message #537873] Fri, 04 June 2010 00:06
Jevon  is currently offline Jevon Friend
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
Previous Topic:icons (gif) not shown in palette
Next Topic:Probelm with GenerateDiagramCode ant task
Goto Forum:
  


Current Time: Sat Jul 27 15:35:08 GMT 2024

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

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

Back to the top