| How to integrate validation framework with GMF? [message #145475] | 
Mon, 06 August 2007 14:55   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03549 seconds