Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Howto implement quickfixes for model validation constraints
Howto implement quickfixes for model validation constraints [message #1693877] Wed, 29 April 2015 05:46 Go to next message
Steven Kauffmann is currently offline Steven KauffmannFriend
Messages: 19
Registered: November 2014
Junior Member
Hi all,

In our ecore metamodel we are defining custom validation constraint by creating an EOperation that has as arguments: EDiagnosticChain and EMap. The generated code can afterwards be adapted for our needs. This way we can easily implement some validation constraints.

But the question is if it's also possible to have quickfixes implemented for these validation constraints?
I have been looking around and have found some hints in the direction of IMarkerResolution but couldn't find a working example.

Am I looking in the good direction or are there other/better solutions?

Best regards,
Steven
Re: Howto implement quickfixes for model validation constraints [message #1693928 is a reply to message #1693877] Wed, 29 April 2015 10:36 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

we have implemented a first version of generic quick fix support within
the EMF Client Platform project. If you are interested, I could point
you into the right direction.

Best regards

Jonas

Am 29.04.2015 um 07:46 schrieb Steven Kauffmann:
> Hi all,
>
> In our ecore metamodel we are defining custom validation constraint by
> creating an EOperation that has as arguments: EDiagnosticChain and EMap.
> The generated code can afterwards be adapted for our needs. This way we
> can easily implement some validation constraints.
>
> But the question is if it's also possible to have quickfixes implemented
> for these validation constraints?
> I have been looking around and have found some hints in the direction of
> IMarkerResolution but couldn't find a working example.
>
> Am I looking in the good direction or are there other/better solutions?
>
> Best regards,
> Steven


--
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: Howto implement quickfixes for model validation constraints [message #1694113 is a reply to message #1693928] Thu, 30 April 2015 15:15 Go to previous message
Steven Kauffmann is currently offline Steven KauffmannFriend
Messages: 19
Registered: November 2014
Junior Member
Hi Jonas,

Thank you for the reply, Your solution sounds to do the thing we would like to have. Your input is more than welcome.

Best regards
Steven
Previous Topic:[CDO] Oomph Git : Ref refs/.../4.3-maintenance can not be resolved
Next Topic:Ordered features in Ecore model
Goto Forum:
  


Current Time: Wed Oct 16 19:09:00 GMT 2019

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

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

Back to the top