- GMF Troubleshooting
- GMF Troubleshooting 2
- GMF Troubleshooting 3
- GMF Troubleshooting 4
- GMF Troubleshooting 5
- GMF Troubleshooting 6
- GMF Troubleshooting 7
- GMF Troubleshooting 8
- GMF Troubleshooting 9
- GMF Troubleshooting 10
I get the following four errors when trying to generate my .gmfgen file: - Validation failed unexpectedly for ‘Gen Top Level Node …EditPart’. - Validation failed unexpectedly for ‘Type Model Facet’. - The required feature ‘targetMetaFeature’ of ‘Type Link Model Facet’ must be set. - Validation failed unexpectedly for ‘Type Link Model Facet’.
This may happen if you are creating a Link class, and you have a LinkMapping in your gmfmap that is not properly set. You need to set the “source feature”, “target feature” and “diagram link” values in this Link Mapping, so that GMF knows where the link goes.
When I save my ecore-based diagram and close it, all the links lose their targets when I re-open it.
This can happen if the Linking class doesn’t have a property for the source of the link, or your “source” value in the gmfmap > Link Mapping is not set.
When generating my diagram code, the new Java project contains Java errors, such as duplicate methods
This can happen when you try to generate a diagramming project over an existing project. Delete the entire Java project and re-generate it again.
My link doesn’t have an arrow at the end of it
- Add a new Polyline Decoration to .gmfgraph > Canvas > Figure Gallery and give it a name
- Add a new Polyline Connection to the appropriate .gmfgraph > Canvas > Figure Gallery > Figure Descriptor for the link, and set the Target Decoration to your new Polyline Decoration
- Delete the .gmfgen and regenerate it
- Regenerate diagram code and re-run application
Tools on the palette are generating the wrong types of objects! Cat is creating Dog, Dog is creating Link, …
Check each Tool Entry in .gmfgen > Gen Editor Generator > Gen Diagram > Palette > Tool Group, and make sure the “Gen Links” and “Gen Nodes” properties are set correctly.
Changing the title of the wizard in “Create New”
You can change this in .genmodel > Model Name.