|
|
|
|
|
Re: specifying icons in exeed [message #1043267 is a reply to message #1043224] |
Wed, 17 April 2013 13:42 |
|
Hi Oscar,
I can't reproduce c) as the following works fine for me
---
@namespace(uri="foo", prefix="")
package foo;
@exeed(icon="return 'package';")
class X {
attr XType type;
}
---
d) shouldn't work because "classIcon" is meant to be a static string. For context-specific icons, "icon" should be used instead.
Cheers,
Dimitris
|
|
|
Re: specifying icons in exeed [message #1043814 is a reply to message #1043267] |
Thu, 18 April 2013 06:47 |
oskar saiz Messages: 17 Registered: February 2013 |
Junior Member |
|
|
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
|
|
|
Re: specifying icons in exeed [message #1043849 is a reply to message #1043814] |
Thu, 18 April 2013 07:34 |
|
Hi Oskar,
I've just fixed #1 on the website. Regarding #2 with the following metamodel, instances of X always appear with a "class" icon regardless of the order of the two annotations. Are you encountering a different behaviour?
--
@exeed(classIcon="class")
@exeed(icon="return 'package';")
class X {
attr XType type;
}
--
Cheers,
Dimitris
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03515 seconds