| Change generated DiagramFile.gif icon automatically [message #1011949] |
Wed, 20 February 2013 10:18  |
web Mac Messages: 5 Registered: February 2013 Location: Germany |
Junior Member |
|
|
Is it possible to change the DiagramFile.gif icon (which is generated in the .diagram folder by GMF) automatically during the generation process?
So far i only see the possibility to change these diagram files afterwards manually which does not really satisfy my needs since i have more then one editor and these are generated quiet frequently right now.
|
|
|
|
| Re: Change generated DiagramFile.gif icon automatically [message #1012347 is a reply to message #1012299] |
Thu, 21 February 2013 06:44   |
web Mac Messages: 5 Registered: February 2013 Location: Germany |
Junior Member |
|
|
Hi Ralph and thank you for the quick reply.
I am already using a transformation and getting an .transformed.gmfgen model out of the .gmfgen file.
I'd like to keep it this generative way and don't want to touch the .gmfgen manually!
For the transformation an .xpt file is used, making some internalTransforms like this:
import gmfgen;
import ecore;
extension org::eclipse::xtend::util::stdlib::counter;
// transforms the given GMFGenModel
List[emf::EObject] transform(List[emf::EObject] gmfGenModelContents) :
let contents = gmfGenModelContents.eAllContents.addAll(gmfGenModelContents) :
contents.internalTransform() ->
gmfGenModelContents;
internalTransform(GenDiagram this) :
this.setEditingDomainID("SharedEditingDomain") ->
this.setVisualID(2000);
Do you reffer to this possibility of the .gmfgen model modification?
If so, can you please tell me which transformations are necessary in order to link to an own FileDiagram icon?
P.S.: I also use GMFTools for an automatically generation.
[Updated on: Thu, 21 February 2013 06:45] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01500 seconds