Where to put image files (resources) and how to access them Follow
Hi,
I have an image cell and I want to use the image provider to show a default image if no real image is chosen yet. I put my image under "MyProject/languages/myLanguage/res/missing.png".
Is this the right location for an image? How can I get the location of myLanguage programmatically?
Thanks,
Julian
Please sign in to leave a comment.
If you have the model
If you have a node
Thanks, that helps.
For the next person running into this, the result of
Looks like this:
"IdeaFile{file:///path/to/MPSHome/ProjectName/languages/LanguageName/sandbox/models/LanguageName/sandbox.mps}"
And to get the "real" path out of it one can use:
Hi,
What about when the png is in another model ?