Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Two level validation
Two level validation [message #543685] Wed, 30 June 2010 05:59 Go to next message
Eclipse UserFriend
Hi,
I would like to implement in my graphical editor two kinds of validation: one loose that capture strong errors while the user draws the diagram and one stricter to be enforce before code generation happens. The reason is that in this way the user could draw and save partial diagrams non yet complete and correct but he has to revise them before generation.

For the loose validation I am thinking about writing ocl constraints in the emf model but I don't know how to implement the strict validation,

suggestions?

Federico
Re: Two level validation [message #544918 is a reply to message #543685] Tue, 06 July 2010 00:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi Federico,

In my project I use OCL in GMF for basic constraint checking, but also
use OAW Checks for extended constraint checking before code generation.
This can be implemented with any number of validation technologies, if
you link it into the EMF validation framework.

As part of my thesis I have looked into languages such as OAW, Crocopat,
NuSMV, Ally etc, and these can all be integrated quite simply into EMF.
The big question is how to trigger this validation - do you want it to
occur on load, on save, on a dialog menu, or as part of another action
(e.g. code generation).

Cheers
Jevon

Federico Tomassetti wrote:
> Hi,
> I would like to implement in my graphical editor two kinds of
> validation: one loose that capture strong errors while the user draws
> the diagram and one stricter to be enforce before code generation
> happens. The reason is that in this way the user could draw and save
> partial diagrams non yet complete and correct but he has to revise them
> before generation.
>
> For the loose validation I am thinking about writing ocl constraints in
> the emf model but I don't know how to implement the strict validation,
>
> suggestions?
>
> Federico
Re: Two level validation [message #544939 is a reply to message #544918] Tue, 06 July 2010 03:18 Go to previous message
Eclipse UserFriend
I would like to trigger the "second-level validation" before generation starts,

Federico
Previous Topic:Classes in DOS Fileformat?
Next Topic:Pop up menu for showing data about link between two component
Goto Forum:
  


Current Time: Thu May 15 05:42:46 EDT 2025

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

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

Back to the top