Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to execute diagrams validation programmatically?
How to execute diagrams validation programmatically? [message #216162] Thu, 22 January 2009 17:25 Go to next message
Georges Bachelier is currently offline Georges BachelierFriend
Messages: 8
Registered: July 2009
Junior Member
Hello everyone!

I would like to validate a flow diagram drawn with our GMF-based editor by
using the runNonUIValidation static method of the ValidateAction class.
The reason is that a flow diagram is a hierarchical structure of sub-flows
which we would like to validate as a whole, without having to open the
diagram editor to display and validate every flow or sub-flow.

Could you please tell me how to build the View argument of the
runNonUIValidation method from the diagram XMI file?

Thanks a lot in advance for your time!

Georges
Re: How to execute diagrams validation programmatically? [message #216901 is a reply to message #216162] Fri, 30 January 2009 13:11 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Georges,

You can load diagram XMI file using EMF resource loading mechnizm. In a root
of this resource you will see Diagram instance wich is an instance of a View.

-----------------
Alex Shatalin
Previous Topic:GMF printing all diagrams in a project with a single click
Next Topic:Child Reference Containment Feature
Goto Forum:
  


Current Time: Sat Mar 06 03:21:11 GMT 2021

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

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

Back to the top