Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF not shows diagnostic messages after validation(GMF run EMF validation adapter but not shows diagrnostic messages)
GMF not shows diagnostic messages after validation [message #1017272] Mon, 11 March 2013 12:25
Zemiii Zoltán Zemko is currently offline Zemiii Zoltán ZemkoFriend
Messages: 4
Registered: September 2011
Junior Member
Hi everyone!

I have got a EMF model editor and validation plugin.
Validation plugin. This plugin implements ValidatorAdapter class for validating objects in the model.
        @Override
	public boolean validate(EClass eClass, EObject eObject, 
						DiagnosticChain diagnostics, Map<Object, Object> context) 
	{
              // validation rules
 	}


In the Startup class I register this Validator class ...
EValidator.Registry.INSTANCE.put(
		TfmcbsPackage.eINSTANCE,
		new ValidatorAdapter());


When I run EMF editor for my model, eveything works fine.

I have tried to use same validator in GMF. In gmfgen model I set properties:

  • ValidationDecorators=true
  • Validation Enabled=true
  • ValidationDecpratorProviderPriority=true


After this I have generated diagram source code

But when I run diagram editor and run command to validate from menu Edit->Validate, GMF call samewhere my ValidatorAdapter.validate(..) method but do not show diagnostic messages in "Problems" window.

Please help me.

Best regards
Zoltán Zemko
Previous Topic:Creating a compartment with embedded nodes
Next Topic:Element order inside compartments
Goto Forum:
  


Current Time: Sat Nov 22 10:43:59 GMT 2014

Powered by FUDForum. Page generated in 0.01717 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software