-
assigned issue to
- changed component to Message View
Choose Literal of Specific Enum as value
There should be, I think, a way to select specific values of enums in the scope.
e.g.
myLineImage = new MinuetoImage(400, 400);
myLineImage.drawLine(MinuetoColor.BLACK, 0, 0, 200, 200);
There doesn't seem to be a way to access MinuetoColor.BLACK from TouchCORE.
Comments (5)
-
-
- changed title to Choose Literal of Specific Enum as value
-
References
#244: Adds an EnumLiteralValue as a sub-class to ValueSpecification, which has a reference to a specific REnumLiteral. Also adds the generated code.→ <<cset e36dae677e8c>>
-
References
#244: Changes the item provider for EnumLiteralValue to have the textual representation include the enum's name (e.g., Enum.Literal).In addition, the property descriptor for the value property (REnumLiteral) filters out everything except literals from extended aspects and the label provider uses the same textual representation as described above.
→ <<cset 0c85e5d1a7ae>>
-
- changed status to resolved
Resolves
#244: Adds the option to choose and use an enum literal as the value when using the ReferenceAndValueHandler.Also extends the controller to create the corresponding EnumLiteralValue when an REnumLiteral is chosen by the user.
→ <<cset 03cbe459c871>>
- Log in to comment
The class you mentioned is not an enum, but you are right, enum literals should be able to be chosen as values.