|
Re: Extending/customizing an X-Text generated editor [message #702199 is a reply to message #701484] |
Tue, 26 July 2011 04:47 |
Mirko Raner Messages: 125 Registered: July 2009 Location: New York City, NY |
Senior Member |
|
|
Not sure why you would want to trigger serialization and validation explicitly via menu entries. Ideally, you'd always want to know whether your model is valid or not, without any special action. For example, when you make a mistake in your Java code Eclipse will alert you to the problem with an error marker right away. To me, it seems the best approach would be to customize the EValidator for your language, to get instant feedback on validation problems. There is an auto-generated <YourLanguage>JavaValidator that you can customize.
For serialization (i.e., writing your language code to an external format, if I understand your scenario correctly), I'd suggest to look at the IXtextBuilderParticipant to get instant serialization of your models (see http://www.eclipse.org/forums/index.php/mv/msg/224285/702182/#msg_702182).
|
|
|
Powered by
FUDForum. Page generated in 0.03322 seconds