You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spray uses an enum to define colors. The generator maps that to
IColorConstants. The Spray DSL should directly refer to a JvmType and filter
them by type IColorConstant.
{{{
...
lineColor = Color
...
enum Color :
BLACK = 'black'
}}}
Change to:
{{{
Color : type = JvmTypeReference
}}}
Later this should be extended to compute the color by an Xbase expression.
Original issue reported on code.google.com by karsten....@googlemail.com on 2 Sep 2011 at 1:06
The text was updated successfully, but these errors were encountered:
Colors from IColorConstant can be referred by their lower-case simple name
('black'), all others can be referred to by qualified field name
(IColorConstant::BLACK)
This is configurable in principle, depending on the runtime implementation. A
runtime must therefore implement IColorConstantTypeProvider.
User Guide:
http://code.google.com/a/eclipselabs.org/p/spray/wiki/UserGuide_Language_Layout
Original comment by karsten....@googlemail.com on 21 Sep 2011 at 9:02
Original issue reported on code.google.com by
karsten....@googlemail.com
on 2 Sep 2011 at 1:06The text was updated successfully, but these errors were encountered: