Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » CAN NOT CHANGE AN ICON IN THE PALETTE( how you can change the icon of Reference based links to make sure that is not equal to that of the parent node?)
icon5.gif  CAN NOT CHANGE AN ICON IN THE PALETTE [message #496015] Fri, 06 November 2009 20:55 Go to next message
marco  is currently offline marco
Messages: 82
Registered: September 2009
Member
hello

in my editor I have the following palette.

http://img196.imageshack.us/img196/8216/menu1s.jpg


I have the problem that I can not change the icon of the Members connections, which is equal to that of the node groups.

Members is a Reference based links inside group class.

@gmf.node(figure="ellipse",label = "name")
class group extends Element {
@gmf.link(style="dash")
ref Element[*] members;
}


how can I change the icon that represents Members palette?
Have I to change something in the java classes or in gmfmap?

please tell me

thank you very much

marco
Re: CAN NOT CHANGE AN ICON IN THE PALETTE [message #498217 is a reply to message #496015] Sun, 15 November 2009 18:05 Go to previous messageGo to next message
Alex Shatalin is currently offline Alex Shatalin
Messages: 141
Registered: July 2009
Senior Member
Hello marco,

Did you try creating child elements small/large icon below corresponding
tool from .gmftool model?

-----------------
Alex Shatalin
Re: CAN NOT CHANGE AN ICON IN THE PALETTE [message #498581 is a reply to message #498217] Tue, 17 November 2009 10:10 Go to previous message
marco  is currently offline marco
Messages: 82
Registered: September 2009
Member
hello alex

i have resolve the problem.

i used inside the EMF file the annotations for the gmf.link .

i initialized tool.small.path and tool.large.path with the path of my image.

@gmf.node(figure="ellipse",label = "name")
class Group extends Element {
@gmf.link(style="dot",tool.small.path="/a0_editor.edit/icons/full/obj16/Members.gif ",tool.large.path="/a0_editor.edit/icons/full/obj16/Members.gif ")
ref Element[*] members;
}

regard
marco
Previous Topic:Integrate GMF in RCP application
Next Topic:how to set label text programmatically
Goto Forum:
  


Current Time: Wed Aug 20 01:07:31 EDT 2014

Powered by FUDForum. Page generated in 0.01832 seconds