I'm trying to create an editor for my model but after many attempts i receive several errors in the package manager.diagram.edit.parts (manager is model's name). This errors are present in public IParser getParser() classes and in a static calls off registerSnapBackPosition and always is present a ManagerVisualIDRegistry.getType method.
ManagerVisualIDRegistry.getType(manager.diagram.edit.parts.ManagerParameterNameEditPart.VISUAL_ID)); -----> diagram cannot be resolved or i not a field.
ManagerVisualIDRegistry..getType(manager.diagram.edit.parts.ManagerParameterStateExternalLabelEditPart.VISUAL_ID),new Point(0, 40)); ----> cannot make a static reference to the non static field-manager.
If i try to run the editor it runs but several nodes and connection are disadbled and if a try to create a note it is locked on top-left corner and i can't move it.
please help me to fix this problem... are many days that I try to do it.
I've had a look at this but I must admit I have no clue how to fix this. Splitting metamodels in different .ecore files / sub-packages is generally a no-no in EMF and this may be affecting GMF as well, so I'd suggest trying to create one big metamodel that contains everything and giving it another go.
in this way it works! But i had to manually insert a non containment reference to diagram class for each elements... it's normal? without this reference elements are present in the palette bu in disable mode...