1. GMF Troubleshooting
  2. GMF Troubleshooting 2
  3. GMF Troubleshooting 3
  4. GMF Troubleshooting 4
  5. GMF Troubleshooting 5
  6. GMF Troubleshooting 6
  7. GMF Troubleshooting 7
  8. GMF Troubleshooting 8
  9. GMF Troubleshooting 9
  10. GMF Troubleshooting 10

I cannot edit the properties of an element in the diagram editor (there are no properties – they come up blank)

Try regenerating your .gmfgen for your root editor – it is possible there are some Link References and Child References that have not been included.

If this doesn’t work, then the best solution is to delete your entire “edit” plugin and regenerate it from scratch. I spent a couple of hours trying to resolve this problem, and it turns out the issue was probably missing lines in the plugin.xml.

(A less drastic solution may be just deleting your plugin.xml.)

I cannot create a shortcut to an element from the Project Navigator because it is not provided in the tree. I have missing project navigator listings for particular model elements.

This can occur if the .genmodel of the container element does not have ‘children’ set to true. Only .genmodel containment references that have ‘children’, ‘create child’ and ‘notify’ as true will be provided in the Project Navigator. Try:

  1. Reloading the .genmodel from your .ecore
  2. Deleting the reference in the .genmodel and reloading the .ecore
  3. Making sure that only one .gmfgen/editor has Generate Domain Model Navigator set to true

To see what containment references will be provided in the editor, look at the model.edit plugin: model.provider.[ContainingObject]ItemProvider#getChildrenFeatures(Object) method.

Labels within a node are rendered horizontally rather than vertically

In the .gmfgraph > Figure Gallery > Figure Descriptor > Rectangle > Flow Layout for your node, set Vertical to true.

When trying to set the font color of a Label, the color is ignored and all Labels remain black

See this newsgroup posting: local preferences and defaults are overriding your labels. (My approach.)

I have more than one/too many “initialize foo_diagram diagram file” in the right-click menu

This occurs when more than one .gmfgen has the same “Domain File Extension” set. Go into a .gmfgen and change this back to the default, or change it to something wild and wacky.

My gmfgen is generating code that refers to an ItemProviderAdapterFactory that does not exist.

The problem is that in your edit plugin, the plugin.xml is referring to a package that no longer exists. Edit or delete your plugin.xml to resolve this.

You might also have a package that is empty (that is, contains no generate-able classes).