Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable referencing of IColorConstant instances as color #7

Closed
GoogleCodeExporter opened this issue Apr 27, 2016 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant