Hi, I have tried your suggestion with no luck I'm afraid.
I created a simple "UML Model with TOPCASED" I added a class "Plane" with a single property "seats" of type Integer. I then create the ocl rule file with the following text MainModel : http://www.eclipse.org/uml2/2.1.0/UML context Plane::seats init: 0 The ocl editor shows an error about the context Plane saying that it is not found in package uml. This is sort of expected as it currently has no knowledge of my model. I then apply the ocl rule file to my model as you indicated. The screen with Global Resuts open up showing "1 file read, 0 rule evaluated, 0 rule failed" I have tried other ocl expressions with the same non result. Thanks for your responses. Regards Pieter On Mon, Jan 12, 2009 at 4:44 PM, Sébastien GABEL <sebastien.ga...@c-s.fr>wrote: > Hi, > > See the attached screenshot. > Then, a dialog box will open and you will select manually your OCL rule > file browsing your workspace. > > Regards > > Sébastien > > Pieter Martin a écrit : > >> Hi, >> >> What do you mean by "Apply the previous OCL rule file on your UML models". >> >> I have created the OCL rule file with the URI i.e : >> http://www.eclipse.org/2.1.0/UML. >> >> But then how do I make it aware of my own UML model? >> >> Thanks >> Pieter >> >> On Mon, Jan 12, 2009 at 11:51 AM, Sébastien GABEL >> <sebastien.ga...@c-s.fr<mailto: >> sebastien.ga...@c-s.fr>> wrote: >> >> Hi Pieter, >> >> Tell me if I'm wrong but it's already the case ! >> I don't know which Topcased version you are using but follow these >> steps : >> 1) Create an OCL rule file using the wizard and selecting the >> appropriate URI i.e : http://www.eclipse.org/2.1.0/UML >> 2) Apply the previous OCL rule file on your UML models. >> >> Does it answer your question ? >> >> Regards, >> >> Sébastien >> >> Pieter Martin a écrit : >> > Hi, >> > >> > I see that currently the OCL editor only works on meta models or >> ecore >> > models. >> > >> > Can we expect the OCL editor to work on UML models? >> > >> > This would be great. >> > >> > Thanks >> > Pieter >> > >> >> ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Topcased-users mailing list >> > Topcased-users@lists.gforge.enseeiht.fr >> <mailto:Topcased-users@lists.gforge.enseeiht.fr> >> > http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> >> >> -- >> Sébastien GABEL >> MDA/MDE Engineer >> Département SI Aéronautique & Industrie >> Communication & Systèmes >> ZAC de la Grande Plaine. Rue Brindejonc de Moulinais >> F-31506 Toulouse Cedex 5 >> +33 (0)5.61.39.46.16 >> >> >> >> _______________________________________________ >> Topcased-users mailing list >> Topcased-users@lists.gforge.enseeiht.fr >> <mailto:Topcased-users@lists.gforge.enseeiht.fr> >> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Topcased-users mailing list >> Topcased-users@lists.gforge.enseeiht.fr >> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> > > > -- > Sébastien GABEL > MDA/MDE Engineer > Département SI Aéronautique & Industrie > Communication & Systèmes > ZAC de la Grande Plaine. Rue Brindejonc de Moulinais > F-31506 Toulouse Cedex 5 > +33 (0)5.61.39.46.16 > > > > _______________________________________________ > Topcased-users mailing list > Topcased-users@lists.gforge.enseeiht.fr > http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >
_______________________________________________ Topcased-users mailing list Topcased-users@lists.gforge.enseeiht.fr http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users