| how to "dynamically" load different images for nodes ? [message #1811321]
||Fri, 30 August 2019 18:09
| Mohamed Ali Kallali
Registered: August 2019
I am trying to load different images of nodes without previously defining them as classes or enumeration of the node in the EMF Model but only as an attribute "nodeImage".|
The nodeImages would be put in a separate folder at runtime.
The "nodeImage" attribute indicates wich image should be assigned to wich node but I have to read it from a generated EMF file first to be able to statically assign a value to the desired GMF node before initializing the diagram file.
Editing the "NodeEditPart" in my *.diagram after defining a costum figure in the *.gmfgraph sets a standard image for all the nodes. Since the "NodeEditPart" is extending AbstractBorderedShapeEditPart I can not define the "nodeImage" as input for the method createNodeShape().
Is there any workaround? or the images have to be explicitly declared in the EMF model? Thank you!
Powered by FUDForum
. Page generated in 0.03586 seconds