Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Live validation with EVL
Live validation with EVL [message #1766547] Thu, 22 June 2017 22:15 Go to next message
Sara Rosa is currently offline Sara RosaFriend
Messages: 24
Registered: March 2017
Junior Member
Hi all,

I added extra validation to my EMF project with EVL and I would like to add live validation. However, live validation only works for Ecore default validation (I get the errors from my EVL validation on Problems when I click the "Validate" button so they are working).

I already tried the last past of this tutorial (https://www.eclipse.org/epsilon/doc/articles/evl-gmf-integration/) but I don't have that package since I didn't create my project with Eugenia.

Thank you for your help,
Sara
Re: Live validation with EVL [message #1766574 is a reply to message #1766547] Fri, 23 June 2017 08:33 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Sara,

The EVL-EMF integration does not support "live" validation. Please feel free to submit an enhancement request for this [1].

Cheers,
Dimitris

[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=epsilon
Re: Live validation with EVL [message #1766588 is a reply to message #1766574] Fri, 23 June 2017 10:53 Go to previous messageGo to next message
Sara Rosa is currently offline Sara RosaFriend
Messages: 24
Registered: March 2017
Junior Member
Hi Dimitris,

Thank your for your message.

And manually when the users save the document? Is it possible?

Cheers,
Sara
Re: Live validation with EVL [message #1766590 is a reply to message #1766588] Fri, 23 June 2017 10:59 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Sara,

Are you using a generated or a reflective tree-based editor?

Cheers,
Dimitris
Re: Live validation with EVL [message #1766643 is a reply to message #1766590] Fri, 23 June 2017 18:46 Go to previous messageGo to next message
Sara Rosa is currently offline Sara RosaFriend
Messages: 24
Registered: March 2017
Junior Member
Hi Dimitris,

Thank your for your message.

Yes, I'm using a tree editor.

Cheers,
Sara

[Updated on: Fri, 23 June 2017 18:51]

Report message to a moderator

Re: Live validation with EVL [message #1766644 is a reply to message #1766643] Fri, 23 June 2017 18:49 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Sara,

Is it a reflective or a generated editor?

Cheers,
Dimitris
Re: Live validation with EVL [message #1766645 is a reply to message #1766644] Fri, 23 June 2017 18:56 Go to previous messageGo to next message
Sara Rosa is currently offline Sara RosaFriend
Messages: 24
Registered: March 2017
Junior Member
Hi Dimitris,

I think it's generated editor. How can I check that?

Cheers,
Sara

[Updated on: Fri, 23 June 2017 19:01]

Report message to a moderator

Re: Live validation with EVL [message #1766649 is a reply to message #1766645] Fri, 23 June 2017 20:55 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Sara,

I haven't tried this but tweaking your generated editor's doSave() method and calling Diagnostician.INSTANCE.validate(...) should do the trick as per [1].

Cheers,
Dimitris

[1] https://stackoverflow.com/questions/8594212/how-to-programmatically-trigger-validation-of-emf-model
Re: Live validation with EVL [message #1766651 is a reply to message #1766649] Fri, 23 June 2017 22:53 Go to previous messageGo to next message
Sara Rosa is currently offline Sara RosaFriend
Messages: 24
Registered: March 2017
Junior Member
Hi Dimitris,

Thanks for your message.
Should I change the doSave(...) of each Editor? And where should I add that Validation after "savedResources.add(resource)"? Sorry I'm kinda of lost...

Cheers,
Sara
Re: Live validation with EVL [message #1766661 is a reply to message #1766651] Sat, 24 June 2017 10:04 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Sara,

I don't have a more precise answer I'm afraid. The good people over at the EMF forum may be able to help more.

Cheers,
Dimitris

[Updated on: Sat, 24 June 2017 10:08]

Report message to a moderator

Previous Topic:Epsilon Generation Language - Multiple Models
Next Topic:How to instantiate a hierarchy of model elements using fixies in EVL
Goto Forum:
  


Current Time: Tue Apr 16 12:45:48 GMT 2024

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

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

Back to the top