|
Re: How to integrate xtext validators in my gmf editor? [message #645448 is a reply to message #645093] |
Fri, 17 December 2010 09:49 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Some things to consider
- Xtext's validator is automatically added to the EValidator.Registry
- enable validation and validation decorators in the gmfgen model
- GMF does not automatically validate but creates an menu action
executes the registered EValidator. If you want to validate in other
phases, e.g. on save, look at the generated validation action how the
validator is invoked and markers / decorators are created.
Am 15.12.10 16:02, schrieb Xavier Seignard:
> Hello,
> I would like to know how to integrate my xtext validators within my gmf
> editor?
> The best would be live validation!
>
> I already set up the xtext<>gmf synchronization with the xtext<>gmf glue.
>
> Any idea? Because I put "Validation enabled" at true in *.gmfgen Gen
> Diagram, but doesn't seem to work.
>
> Thanks
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Powered by
FUDForum. Page generated in 0.02685 seconds