Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to integrate xtext validators in my gmf editor?
How to integrate xtext validators in my gmf editor? [message #645093] Wed, 15 December 2010 15:02 Go to next message
Xavier Seignard is currently offline Xavier SeignardFriend
Messages: 52
Registered: June 2010
Member
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
Re: How to integrate xtext validators in my gmf editor? [message #645448 is a reply to message #645093] Fri, 17 December 2010 09:49 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
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
Previous Topic:[SOLVED] Related file not rebuilt after modification
Next Topic:Using external models from non-xtext ResourceSet
Goto Forum:
  


Current Time: Thu Apr 25 21:47:34 GMT 2024

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

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

Back to the top