Search code examples
colorspropertiesmps

How to set conditional color in MPS context editor?


As a newbee of MPS I try to set different colors for finished items within a small todo list. I have a boolean properties attribute "finished" and want to return the color values - but I cannot use a named color or the java Color class. Surely I forgot something - can anyone tell me what to do?

enter image description here

Thank you very much for any answer!


Solution

  • Just return the constants defined in java.awt.Color. You need to import the java.awt@stub model first (Control + M).