|Swap out GMF validation (EMF Constraints) [message #738712]
||Sun, 16 October 2011 16:45
| Simon Schwichtenberg
Registered: September 2011
How can I swap out the GMF validation to another project?
Here is my approach so far:
I created audit rules in my gmfmap file, activated validation and validation decorators in the gmfgen file and generated the code.
now, I don't want to implement the validation in the generated project, because I swaped out all my customizations to another plugin-project (which has the original project in its required plugin-ins)
I copied the diagram.part.ValidationAction, the diagram.part.XXXDiagramActionBarContributor and the diagram.providers.XXXValidationProvider to the other project and implemented the validation in the inner adapter classes and replaced all occurences of "XXXValidationProvider" in the new ValidationAction. and replaced the occurence of the validationaction in the XXXDiagramActionBarContributor.
Then I moved the extensions for org.eclipse.emf.validation.constraintBindings, org.eclipse.emf.validation.constraintProviders (now pointing to the new XXXValidationProvider), org.eclipse.core.resources.markers, org.eclipse.gmf.runtime.diagram.ui.decoratorProviders, org.eclipse.gmf.runtime.common.ui.services.markerNavigationProviders, org.eclipse.ui.editors (now pointing to the new XXXDiagramActionBarContributor) to the plugin.xml file of the custom-project.
when I run validation from the menu bar, the batchvalidator does not find the constraints I defined.
[Updated on: Sun, 16 October 2011 16:47]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02040 seconds