Problem with validation. [message #36954] |
Fri, 01 September 2006 11:21  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03290 seconds