Home » Modeling » UML2 » Validating an EMF model programatically
| | | |
Re: Validating an EMF model programatically [message #535732 is a reply to message #535625] |
Tue, 25 May 2010 12:52 |
|
Hi, Hector,
I gather from this thread that you have used the example plug-in's
Validate context menu action to successfully test your constraints. It
serves as an example of how to perform validation using the API: just
look at the implementation of that action. :-)
Hopefully the Programmer's Guide documentation included in the SDK will
be helpful, also.
Finally, this subject is not quite in the scope of the MDT UML2
newsgroup. Any follow-up question that you may have about EMF
Validation should be directed to the EMF newsgroup; indeed, you will
probably find that many of your questions (including this one) have been
asked and answered, there.
HTH,
Christian
On 24/05/10 07:30 PM, Hector Chavez wrote:
> Hector Chavez wrote on Mon, 24 May 2010 19:26
>> I tried using Diagnostician.INSTACE before but it seems that it only
>> checks the default core constraints, which is not useful in my case. I
>> added a couple of custom constraints and those are ignored by the
>> Diagnostician.
>>
>> Hector
>
>
> To be more specific, I added two ocl constraints on plugin.xml following
> the format given in the OCL validation tutorial on the eclipse
> documentation web site. Those constraints are correctly checked when I
> use the editor->validate, but are ignored by the Diagnostician.
>
> Hector
>
|
|
|
Re: Validating an EMF model programatically [message #535736 is a reply to message #535732] |
Tue, 25 May 2010 13:03 |
Hector Chavez Messages: 34 Registered: February 2010 |
Member |
|
|
Thank you, I didn't think about that, I'll check the EMF newsgroup.
Hector
Christian W. Damus wrote on Tue, 25 May 2010 08:52 | Hi, Hector,
I gather from this thread that you have used the example plug-in's
Validate context menu action to successfully test your constraints. It
serves as an example of how to perform validation using the API: just
look at the implementation of that action.
Hopefully the Programmer's Guide documentation included in the SDK will
be helpful, also.
Finally, this subject is not quite in the scope of the MDT UML2
newsgroup. Any follow-up question that you may have about EMF
Validation should be directed to the EMF newsgroup; indeed, you will
probably find that many of your questions (including this one) have been
asked and answered, there.
HTH,
Christian
On 24/05/10 07:30 PM, Hector Chavez wrote:
> Hector Chavez wrote on Mon, 24 May 2010 19:26
>> I tried using Diagnostician.INSTACE before but it seems that it only
>> checks the default core constraints, which is not useful in my case. I
>> added a couple of custom constraints and those are ignored by the
>> Diagnostician.
>>
>> Hector
>
>
> To be more specific, I added two ocl constraints on plugin.xml following
> the format given in the OCL validation tutorial on the eclipse
> documentation web site. Those constraints are correctly checked when I
> use the editor->validate, but are ignored by the Diagnostician.
>
> Hector
>
|
|
|
| | |
Re: Validating an EMF model programatically [message #628464 is a reply to message #535625] |
Tue, 25 May 2010 12:52 |
|
Hi, Hector,
I gather from this thread that you have used the example plug-in's
Validate context menu action to successfully test your constraints. It
serves as an example of how to perform validation using the API: just
look at the implementation of that action. :-)
Hopefully the Programmer's Guide documentation included in the SDK will
be helpful, also.
Finally, this subject is not quite in the scope of the MDT UML2
newsgroup. Any follow-up question that you may have about EMF
Validation should be directed to the EMF newsgroup; indeed, you will
probably find that many of your questions (including this one) have been
asked and answered, there.
HTH,
Christian
On 24/05/10 07:30 PM, Hector Chavez wrote:
> Hector Chavez wrote on Mon, 24 May 2010 19:26
>> I tried using Diagnostician.INSTACE before but it seems that it only
>> checks the default core constraints, which is not useful in my case. I
>> added a couple of custom constraints and those are ignored by the
>> Diagnostician.
>>
>> Hector
>
>
> To be more specific, I added two ocl constraints on plugin.xml following
> the format given in the OCL validation tutorial on the eclipse
> documentation web site. Those constraints are correctly checked when I
> use the editor->validate, but are ignored by the Diagnostician.
>
> Hector
>
|
|
|
Re: Validating an EMF model programatically [message #628465 is a reply to message #535732] |
Tue, 25 May 2010 13:03 |
Hector Chavez Messages: 34 Registered: February 2010 |
Member |
|
|
Thank you, I didn't think about that, I'll check the EMF newsgroup.
Hector
Christian W. Damus wrote on Tue, 25 May 2010 08:52
> Hi, Hector,
>
> I gather from this thread that you have used the example plug-in's
> Validate context menu action to successfully test your constraints. It
> serves as an example of how to perform validation using the API: just
> look at the implementation of that action. :)
>
> Hopefully the Programmer's Guide documentation included in the SDK will
> be helpful, also.
>
> Finally, this subject is not quite in the scope of the MDT UML2
> newsgroup. Any follow-up question that you may have about EMF
> Validation should be directed to the EMF newsgroup; indeed, you will
> probably find that many of your questions (including this one) have been
> asked and answered, there.
>
> HTH,
>
> Christian
>
>
> On 24/05/10 07:30 PM, Hector Chavez wrote:
> > Hector Chavez wrote on Mon, 24 May 2010 19:26
> >> I tried using Diagnostician.INSTACE before but it seems that it only
> >> checks the default core constraints, which is not useful in my case. I
> >> added a couple of custom constraints and those are ignored by the
> >> Diagnostician.
> >>
> >> Hector
> >
> >
> > To be more specific, I added two ocl constraints on plugin.xml following
> > the format given in the OCL validation tutorial on the eclipse
> > documentation web site. Those constraints are correctly checked when I
> > use the editor->validate, but are ignored by the Diagnostician.
> >
> > Hector
> >
|
|
|
Goto Forum:
Current Time: Fri Sep 20 07:43:17 GMT 2024
Powered by FUDForum. Page generated in 0.04059 seconds
|