Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sat Jul 26 02:32:15 EDT 2025

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

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

Back to the top