Skip to main content



      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 14:55 Go to next message
Eclipse UserFriend
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 09:14 Go to previous message
Eclipse UserFriend
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: Thu May 29 02:00:35 EDT 2025

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

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

Back to the top