Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsLoad Complete OCL Resource Automatically
https://www.eclipse.org/forums/index.php/mv/msg/488045/1060590/#msg_1060590
I have build up an uml model and written an ocl file to add constraints on that model.
Actually, I can manually click the 'Load Complete OCL Resource' and drag the ocl file to that message box,
then click the 'validate' button to find if my model fulfills those constraints.
That's what presented in the Eclipse Juno's Help Contents.
And now, I want to write a plug-in to automatically do this procedure.
For example, it will check the models in a specific folder when I save or create some ocl files in another specific folder.
Is there any instructions for me to do that? Which API I can use to do the 'validate' procedure of uml models.
Thanks for you help.]]>Jack Xiang2013-05-27T08:12:35-00:00Re: Load Complete OCL Resource Automatically
https://www.eclipse.org/forums/index.php/mv/msg/488045/1060647/#msg_1060647
GIT\org.eclipse.ocl\tests\org.eclipse.ocl.examples.xtext.tests\src\org\eclipse\ocl\examples\test\xtext\ValidateTests.java
may be helpful.
In the previous thread, Cedric noted some deficiences in the Complete
OCL handling that I'm currently fixing, hopefully for Kepler RC2 on
Wednesday.
Fundamentally you need to
Load the UML model
Add the CompleteOCLEObjectValidator to externd the UML model
Use the standard validation of a UML model
Regards
Ed Willink
On 27/05/2013 13:34, Jack Xiang wrote:
> Hi all,
>
> I have build up an uml model and written an ocl file to add
> constraints on that model.
> Actually, I can manually click the 'Load Complete OCL Resource' and
> drag the ocl file to that message box,
> then click the 'validate' button to find if my model fulfills those
> constraints.
> That's what presented in the Eclipse Juno's Help Contents.
>
> And now, I want to write a plug-in to automatically do this procedure.
> For example, it will check the models in a specific folder when I save
> or create some ocl files in another specific folder.
>
> Is there any instructions for me to do that? Which API I can use to do
> the 'validate' procedure of uml models.
>
> Thanks for you help.]]>Ed Willink2013-05-27T13:04:06-00:00