Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Help - Using EMFT in GMF for validation
Help - Using EMFT in GMF for validation [message #25832] Tue, 22 August 2006 10:23 Go to next message
Eclipse UserFriend
Originally posted by: senthil.periasamy.flextronicssoftware.com

Hi ,

I want to validate my model using EMF validation framework.
If i have to achieve this using GMF(i.e, EMF validation invoked through
GMF).
Pls let me know if this is possible, and if possible how should i go about
achieving the same.

can i make use of the org.eclipse.emf.validation.constraintProviders
extension in
the GMF projects plugin.xml to define my project specific constraints.
Is it possible to register the constraints of the model (EMF model) with
validation service through GMF's plugin.xml file.




Regards
Senthil
Re: Help - Using EMFT in GMF for validation [message #26286 is a reply to message #25832] Tue, 22 August 2006 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Hi Senthil,

Take a look the following conversation in this newsroup.
news:eaq7qp$moq$1@utils.eclipse.org

Regards,
/Radek

"Senthil" <senthil.periasamy@flextronicssoftware.com> wrote in message
news:97a8b2bc2ba5ea1e206f4a3699fadc14$1@www.eclipse.org...
> Hi ,
> I want to validate my model using EMF validation framework.
> If i have to achieve this using GMF(i.e, EMF validation invoked through
> GMF).
> Pls let me know if this is possible, and if possible how should i go about
> achieving the same.
>
> can i make use of the org.eclipse.emf.validation.constraintProviders
> extension in the GMF projects plugin.xml to define my project specific
> constraints.
> Is it possible to register the constraints of the model (EMF model) with
> validation service through GMF's plugin.xml file.
>
>
>
>
> Regards
> Senthil
>
Re: Help - Using EMFT in GMF for validation [message #26878 is a reply to message #26286] Wed, 23 August 2006 07:35 Go to previous message
Eclipse UserFriend
To further add to Radek's explaination,

I did the following steps

1. Created OCL Constraints in Ecore as Annotations.
2. Used the templates that are available in
http://www.eclipse.org/articles/Article-EMF-Codegen-with-OCL /article.html
article. These templates generate code that enforces the contraints using
EMFT framework.
3. Enable the validation in gmfmap.
4. Audit rules that one can implement in gmfmap actually implements the
org....constraintproviders extention point enforcing the constraints
specified in audit rules that is availabe in plugin.xml
5. With out this audit rules the constraints in ecore can be validated in
the diagram plugin by using Diagram -> Validate.

Regards,
Madanagopal.
Previous Topic:How can I use custom border?
Next Topic:Problem in extracting emf validation example
Goto Forum:
  


Current Time: Wed Apr 16 15:00:33 EDT 2025

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

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

Back to the top