Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Validation and Teneo?
Validation and Teneo? [message #488845] Wed, 30 September 2009 13:26 Go to next message
Eclipse UserFriend
Originally posted by: dennis.freese.gmx.net

Hello all,

I have a question about the validation from the second mindmap example.
If I implement the validation like in the example, everything works
great. But my problem is that I'm using teneo for saving the model into
a database. So the target in the validate-Method from the generated
ValidateAction-Class is always null. I know the following automatically
generated source code works fine with files but not with teneo.

This part is genereated by gmf:
IFile target = view.eResource() != null ? WorkspaceSynchronizer
.getFile(view.eResource()) : null;

The validation prints no messages in the problem view when using teneo.
Is there a clue to get the target from the database or should it even work?

Thanks for your answers

Dennis
Re: Validation and Teneo? [message #489509 is a reply to message #488845] Sun, 04 October 2009 10:28 Go to previous message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
Hello Dennis,

I think. IFiles are used to attach validation markers on it, so it's not
an easy task to get rid of them AFAIU.
You can try modifying generated code yourself in order to remove any IFile
dependencies from there and submitt bugzilla request highlighting the problem
+ propose your solution there if you'll have one.

-----------------
Alex Shatalin
Previous Topic:Connections not visible after duplicate action
Next Topic:Connection between compartments
Goto Forum:
  


Current Time: Tue Apr 23 17:45:33 GMT 2024

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

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

Back to the top