Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem with validation.
Problem with validation. [message #36954] Fri, 01 September 2006 11:21 Go to next message
Eclipse UserFriend
Originally posted by: ayalandzhiev.sbnd.net

When set option "Same file for Diagram and Model" for "Gen Editor
Generator" in my components.gmfgen with value true, I have problem for
validation if the attribute have ID = true this case is not works
correctly but when set option "Same file for Diagram and Model" to false
validation of attribute which ID = true works correctly.
Validation for attribute which Required = true works in both case.
I made check using following code:

EObject rootObject = (EObject) resourceDiagram.getContents().get(0);
final Diagnostician diagnostician = new Diagnostician();
final Diagnostic res = diagnostician.validate(rootObject);

Thank for help.
Regards,
Atanas.
Re: Problem with validation. [message #37261 is a reply to message #36954] Fri, 01 September 2006 14:40 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Atanas,

It sounds like your diagram and model may use the same ID values for two
different objects so if you put then in one file, they are in error, but
in separate files, that's fine.


Atanas wrote:
> When set option "Same file for Diagram and Model" for "Gen Editor
> Generator" in my components.gmfgen with value true, I have problem
> for validation if the attribute have ID = true this case is not works
> correctly but when set option "Same file for Diagram and Model" to
> false validation of attribute which ID = true works correctly.
> Validation for attribute which Required = true works in both case.
> I made check using following code:
>
> EObject rootObject = (EObject) resourceDiagram.getContents().get(0);
> final Diagnostician diagnostician = new Diagnostician();
> final Diagnostic res = diagnostician.validate(rootObject);
>
> Thank for help.
> Regards,
> Atanas.
Previous Topic:Labels: Multiline and vertical?
Next Topic:How to visualize different views for a single model
Goto Forum:
  


Current Time: Sat Aug 30 15:03:49 EDT 2025

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

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

Back to the top