Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Two level validation
Two level validation [message #543685] Wed, 30 June 2010 09:59 Go to next message
Federico Tomassetti is currently offline Federico TomassettiFriend
Messages: 190
Registered: July 2009
Location: Dublin
Senior Member

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 04:45 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
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 07:18 Go to previous message
Federico Tomassetti is currently offline Federico TomassettiFriend
Messages: 190
Registered: July 2009
Location: Dublin
Senior Member

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: Fri May 24 22:33:55 GMT 2024

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

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

Back to the top