specifying icons in exeed [message #1037368] |
Tue, 09 April 2013 09:19  |
Eclipse User |
|
|
|
Hi.
A very simple question:
I'm starting to use exeed.
I want to make an annotation to specify the icon: @exeed(icon...
How should I do this? Full path, path relative to what...
A simple example of this would be appreciated.
Thanks in advance
Oskar
|
|
|
|
|
|
|
|
Re: specifying icons in exeed [message #1043814 is a reply to message #1043267] |
Thu, 18 April 2013 02:47   |
Eclipse User |
|
|
|
Hi Dimitris.
You are right.
c) case is also working. @exeed(icon="return 'compare';")
Anyway, I'd like to point a couple of things:
1.- According to previows message answers I would derive that the exeed documentation is not correct:
http://www.eclipse.org/epsilon/doc/articles/exeed-reference/
It says:
classIcon: EOL expression that returns the icon of the instances that conform to the EClass.
In my opinion, it should say somthing like:
classIcon: name of the icon of the instances that conform to the EClass. It is not a EOL expression but a name.
2.- When both annotations (icon and classIcon) are combined, it is not working as expected.
For instance:
@exeed(classIcon="clock")
@exeed(icon="return 'package';")
According to exeed documentation, when 'icon' is specified, it should override the classIcon annotation.
My experimentation suggest that the first annotation is "winning".
In the example above, when both annotations are used (icon and classIcon), the 'classIcon' one wins. (In the example, the "clock" icon is shown).
However, changing the order, the 'package' one wins.
@exeed(icon="return 'package';")
@exeed(classIcon="clock")
This sounds like a bug. Doesn't it?
Thanks again
Oskar
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05166 seconds