UI in the model aspect
Hello forum!
I've seen some sort of UI (Labels, Button, Textfields etc.) in the model aspect of MPS Jetbrains.
I want to be able to define such a swing component in the editor aspect of my language to make the input more user friendly.
I've also installed the plugin https://plugins.jetbrains.com/plugin/7519?pr=mps from @Fabien Campagne (big thanks to him), which provides different types of buttons.
Anyway, I want to define some UI controls on my own.
How can I apply this to my language editor?
Thanks in advance!
Regards
msch95
I've seen some sort of UI (Labels, Button, Textfields etc.) in the model aspect of MPS Jetbrains.
I want to be able to define such a swing component in the editor aspect of my language to make the input more user friendly.
I've also installed the plugin https://plugins.jetbrains.com/plugin/7519?pr=mps from @Fabien Campagne (big thanks to him), which provides different types of buttons.
Anyway, I want to define some UI controls on my own.
How can I apply this to my language editor?
Thanks in advance!
Regards
msch95
Please sign in to leave a comment.
Example: Checkbox
If you are interested in how the button in this plugin works, press Strg/Cmd + N and search for org.campagnelab.ui.code.Swing.Button and org.canpagnelab.ui.structure.Button.
Somehow my changes in my editor aspect aren't refreshed in my .sandbox. For example if I change the backgroundColor from red to green nothing happens in the .sandbox.
My code is below.
Any ideas?