Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Changing (all individual) default diagram labels
Changing (all individual) default diagram labels [message #179285] Wed, 26 March 2008 17:00 Go to next message
Eclipse UserFriend
Originally posted by: john.blutarsky.hotmail.com

Hello everyone,

I would like to change the default icons of the Diagram Labels.

I have managed to do this for all the diagram labels of a node by altering
the .gif files in the .edit plug-in icon/full/...etc. and all of the
Diagram Labels that are associated with that node do change to the new
image I have put in but they are all the same.

I would like to have each of the Diagram labels to be different. I have
searched everywhere in the gmfgraph/gmfmap/gmfgen files but can't see
where the nodes/label diagram actually specifies the image path.

Possibly has something to do with Typed child.setFigure override in Parent
Assigned Viewmap in genmodel? (extreme long shot!)

I have also done searches of the newsgroups but changing the actual image
in the .edit plug-in is all I have come across.

Thanks for your help,


John
Re: Changing (all individual) default diagram labels [message #179385 is a reply to message #179285] Thu, 27 March 2008 12:24 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi John,

Label icons are set in the generated code. See
XyzEditPart.getLabelIcon() and the image registry in the generated
XyzElementTypes class.

Best regards,
Boris


John Bluto wrote:
> Hello everyone,
>
> I would like to change the default icons of the Diagram Labels.
>
> I have managed to do this for all the diagram labels of a node by
> altering the .gif files in the .edit plug-in icon/full/...etc. and all
> of the Diagram Labels that are associated with that node do change to
> the new image I have put in but they are all the same.
>
> I would like to have each of the Diagram labels to be different. I have
> searched everywhere in the gmfgraph/gmfmap/gmfgen files but can't see
> where the nodes/label diagram actually specifies the image path.
>
> Possibly has something to do with Typed child.setFigure override in
> Parent Assigned Viewmap in genmodel? (extreme long shot!)
>
> I have also done searches of the newsgroups but changing the actual
> image in the .edit plug-in is all I have come across.
>
> Thanks for your help,
>
>
> John
>
>
Previous Topic:Taipan Example
Next Topic:xxx_diagram (editor) window is not closed when i delete from pacakage explorer
Goto Forum:
  


Current Time: Sat Apr 20 00:23:17 GMT 2024

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

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

Back to the top