Conditional style MPS 3.1

I have problem to import model t choose appropriate color.

Style:      
<no base style> {         
  text-foreground-color : (editorContext, node)->Color {
  if (node.systemResponseType == "success") {
    return Color.green // impossible
    <no statements>
  }
}
}           

I don't have Color in list.
   

6 comments
You need to import the java.awt@stub model (Control + M)
0
Yes, I already do that.
See my "possibilities"
/_persistent/Color.png?file=29-4867&v=0&c=true

No Color class in list?
0
I can't see the attachment. You should use the wiki syntax to create a link, I think.
0
Are you sure the "Dependencies" tab of the properties of the Editor model of your language contains an entry "java.awt@stub"? Could it be that you by mistake imported java.awt.color@stub instead?

Vaclav
0
Yes, that is. Thanks. Editor model was not specified correct. :)
0

Please sign in to leave a comment.