[EuGENia] How to change icon in palette and popup menu [message #533378] |
Thu, 13 May 2010 11:27  |
Eclipse User |
|
|
|
Hi All,
I have two questions:
Does the tool.small.path() and tool.large.path() properties of @gmf.node or gmf.link does not work anymore with Eugenia-> Generate GMF editor (experimental) ?.
As what I have understand tool.small.path() and tool.large.path() properties needs to be define manually in generated xyz.edit package with in a path /icons/full/obj16/ . For example as posted earlier in
http://www.eclipse.org/forums/index.php?t=msg&th=157305&
@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;
}
or is there any other way to define them. I have followed this following post also but could not get any clear understanding.
http://www.eclipse.org/forums/index.php?t=msg&goto=526559&
Is there is any example of it or how to solve this ?
|
|
|
|
|
|
|
|
Re: [EuGENia] How to change icon in palette and popup menu [message #589209 is a reply to message #589196] |
Fri, 14 May 2010 10:03  |
Eclipse User |
|
|
|
Thanks to Dimitris,
The tool.xxx.bundle attributes was missing from my Emfatic code.
The working syntax is :d
package PaletteAndCanvasIconFix;
@gmf.diagram(foo="bar")
class Map {
val Causation[*] mCause;
}
@gmf.node(figure="ellipse",label="name",label.icon="false ",tool.small.bundle="PaletteAndCanvasIconFix", tool.small.path="icons/toolCondition.gif", tool.large.bundle="PaletteAndCanvasIconFix", tool.large.path="icons/PaletteCondition.gif")
class Causation {
attr String name;
....
}
|
|
|
Powered by
FUDForum. Page generated in 0.04180 seconds