Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to integrate validation framework with GMF?
How to integrate validation framework with GMF? [message #145475] Mon, 06 August 2007 18:55 Go to next message
John Smith is currently offline John SmithFriend
Messages: 137
Registered: July 2009
Senior Member
Hi,

I did a ObjectContribution to EditPart, with an action, and when my
action is run, I extract my EObjects from the selected EditParts and
trigger the installed validation constraints, like it is done in the
validation example for the library metamodel. However I now have the
"model" eobjects (since the containts need them as "self" objects) and
the created IStatus objects refer to them, but not to the EditParts.
Thus, when a marker is navigated, an editor for the model is searched to
open the model element, but not my (already opened) GMF editor. Infact,
the GMF editor has a diagram model. So how do I achieve to open the
diagram model element related to my real model element?

Thanks in advance
Re: How to integrate validation framework with GMF? [message #145567 is a reply to message #145475] Tue, 07 August 2007 13:14 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi exquisitus,

You need to re-associate underlying model objects with notational
objects that wrap those objects on your diagram. If I'm not mistaken,
this is already performed by the generated validation mechanism.

Best regards,
Boris


exquisitus wrote:
> Hi,
>
> I did a ObjectContribution to EditPart, with an action, and when my
> action is run, I extract my EObjects from the selected EditParts and
> trigger the installed validation constraints, like it is done in the
> validation example for the library metamodel. However I now have the
> "model" eobjects (since the containts need them as "self" objects) and
> the created IStatus objects refer to them, but not to the EditParts.
> Thus, when a marker is navigated, an editor for the model is searched to
> open the model element, but not my (already opened) GMF editor. Infact,
> the GMF editor has a diagram model. So how do I achieve to open the
> diagram model element related to my real model element?
>
> Thanks in advance
Previous Topic:Display elements inheritance
Next Topic:In-Code documentation xpt
Goto Forum:
  


Current Time: Mon Sep 16 22:28:51 GMT 2024

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

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

Back to the top