Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » validation without using editor plugin
validation without using editor plugin [message #782857] Tue, 24 January 2012 15:33 Go to next message
sohrab Missing name is currently offline sohrab Missing nameFriend
Messages: 17
Registered: November 2011
Junior Member
Hi ,
I want to validate EMF generated codes without running new editor (.Editor) plugin. I use some OCL constraints to check rules and relations.

I can validate in new editor but without it , I don't know what should be do?

Thanks
Re: validation without using editor plugin [message #782883 is a reply to message #782857] Tue, 24 January 2012 16:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
You can look ata what

On 24/01/2012 4:33 PM, sohrab Mising name wrote:
> Hi ,
> I want to validate EMF generated codes without running new editor
> (.Editor) plugin. I use some OCL constraints to check rules and
> relations.
>
> I can validate in new editor but without it , I don't know what should
> be do?
>
> Thanks
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: validation without using editor plugin [message #782884 is a reply to message #782857] Tue, 24 January 2012 16:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Oops. You can look at what ValidateAction does. Mostly it comes down
to using Diagnostician.INSTANCE...


On 24/01/2012 4:33 PM, sohrab Mising name wrote:
> Hi ,
> I want to validate EMF generated codes without running new editor
> (.Editor) plugin. I use some OCL constraints to check rules and
> relations.
>
> I can validate in new editor but without it , I don't know what should
> be do?
>
> Thanks
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: validation without using editor plugin [message #782902 is a reply to message #782884] Tue, 24 January 2012 17:15 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

If you're using embedded OCL, it should just work, although you can use
an OCLinEcoreEObjectValidator if you want custom OCL-defined messages.

If you're using Complete OCL you need to use a
CompleteOCLEObjectValidator to bind the OCL.

See the Help Documentation.

Regards

Ed Willink

On 24/01/2012 16:32, Ed Merks wrote:
> Oops. You can look at what ValidateAction does. Mostly it comes down
> to using Diagnostician.INSTANCE...
>
>
> On 24/01/2012 4:33 PM, sohrab Mising name wrote:
>> Hi ,
>> I want to validate EMF generated codes without running new editor
>> (.Editor) plugin. I use some OCL constraints to check rules and
>> relations.
>>
>> I can validate in new editor but without it , I don't know what
>> should be do?
>>
>> Thanks
>>
Previous Topic:[how to] adding new view to model
Next Topic:[EMF CP] NewModelElementWizard for non root elements
Goto Forum:
  


Current Time: Wed Apr 24 19:58:27 GMT 2024

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

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

Back to the top