Skip to main content


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] Sat, 07 November 2009 01:55 Go to next message
marco  is currently offline marco Friend
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 23:05 Go to previous messageGo to next message
Alex Shatalin is currently offline Alex ShatalinFriend
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 15:10 Go to previous message
marco  is currently offline marco Friend
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: Tue Apr 23 07:32:27 GMT 2024

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

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

Back to the top