Referencing of Icons in MPS-Editor

Technical Problem:

Icons are used within an MPS editor. The relative path information to the required icon file differs depending upon whether you are working within the MPS development environment or in the standalone application. Consequently, the icons are either only visible in the standalone application or only during development. Of course, neither is a satisfactory solution. 


To get this situation under control, it is advisable not to reference the icon files used via the file system but from a Java resource. 

To do this, simply create corresponding "Dummy Actions" within a suitable Solution, within which the required icons are referenced. The build environment then ensures that the icons can be found within the respective generated JAR files. 

These icons can then easily be referenced within the MPS-Editor via the respective Path within the Resource (JAR file). The paths of the icons can thus be resolved and used both directly within the MPS development environment and as part of a generated standalone application: 

BufferedImage icon ="/path/wit
Continuous Integration of MPS & ANT