Laura, you're the best! Now, It works! a kiss from Florence (Italy).
thanx a lot for your help! Marty 2009/5/12 <[email protected]> > Hi, > > thank you for the detailed steps, now it's more clear. > > I followed all the steps in Topcased 2.5: > * I create the profile with a Property1 as a type UML primitive type > Integer. (one.jpg) > * I create the class diagram with an Instance Specification of Class1 > stereotyped with 'Stereotype1' from my profile > * I create one slot and Defined Feature is setted as Property1. (two.jpg) > > I dont have the same problem as you when validating the model. I advise > you: t's not obvious to find the Property1, I was forced to do it from the > 'Advance Property View' helping myself with the autocompletion (typing: > <Property> Property1). > > Tell us if that doesn't solve your problem. > > Laura. > > > > [email protected] a écrit : > >> Ok, I try to explain better. >> >> I have: >> >> 1) a profile (.uml file) with a stereotype (<<Steretype1>>) that extend >> the Metaclass Class. In this stereotype I defined a property ("Tipo1") with >> a Integer Type. I saved the profile and it's all OK!. (In the profile I have >> "<PackageImport> UML Primitive Types") . >> >> 2) I created a model with a Class named "Class1", stereotyped with >> <<Steretype1>>. (So when I select Class1 stereotyped and click on Stereotype >> Attributes I can see "Tipo1" and I can change its value). >> >> 3) I created a "specification instance" ------> "A: Class1" (it's an >> istance specification of Class1). I save it and "validate the model" with >> the button on top on the right on the right side and all it' OK. >> >> 4) I created a "slot" (Property1) in the specification instance A:Class1 >> and I have to define the value of "Tipo1". I selected the slot and I search >> in "Defining Feature" Tipo1, but I don't find it. >> >> How can I do to change the value of the slot of a istance specification of >> class stereotyped?? >> >> Maybe I must define the property Tipo1 in the Class, but when I defined >> the Integer Type and click on "Validate the model" it' make me the error: >> /error: Root diagnostic >> A PackageImport is needed from Model or one of its parents to uml, >> because of the Property relation between Class1 and Integer/. >> >> BUT if I don't click "Validate the model" and save it ..all it' ok! and I >> can also define the slot with a value.! >> >> I hope I'm clear! >> thanx a lot >> Marty >> >> >> >> >> >> >> 2009/5/12 <[email protected] <mailto: >> [email protected]>> >> >> Hi Marty, >> >> have you a "<PackageImport> UML Primitive Types" in your Model >> automatically generated in the outline? >> >> Try to open the .uml file of your profile and validate from it. >> To do this: When openned your uml model, select the <Profile> element, >> click on 'UML Editor' menu and choose 'Validate'. >> Normally, you will not have this error. >> >> Regards, >> Laura. >> >> >> >> [email protected] >> <mailto:[email protected]> a écrit : >> > Hi, >> > >> > I created a model and a class A. In A I have to define a property , >> > "property1" and its type, for example Integer. >> > So I imported UML Primitive Type and I define the "Propery1" type >> > selecting Type -> UMLPrimitiveType::Integer. I saved it and it makes >> > me OK. >> > >> > so... >> > >> > I click on "validate the model" button, it makes me: *The model >> is not >> > valid*. Rason: Root diagnostic >> > /A PackageImport is needed from modelloDprova or one of its >> parents >> > to UMLPrimitiveTypes, because of the Property relation between >> Class1 >> > and Integer/ . >> > >> > ---> >> > >> > I don't know if, even in this case, to know if my model is >> correct or >> > not, it's enough to save and not click on "validate the model" >> button! >> > >> > I'm very sorry, I'm boring but it's importat that I create a correct >> > diagram! >> > Thanx a lot >> > Marty >> > >> > >> > >> > 2009/5/11 <[email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>>> >> > >> > Don't worry about those errors, I have also these >> warnings/errors with >> > my profiles but then the profile is absolutely correct. >> > >> > regards, >> > laura. >> > >> > [email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>> a écrit : >> > > Thanx a lot, >> > > >> > > I created a profile in this way: New -> UML Model with >> TOPCASED -> >> > > profile template ->Finish. >> > > So I create 1 stereotype that extended the Metaclass Class. I >> > save it >> > > and it makes me OK. >> > > >> > > ....but I see on the top on the right side, that there is >> a button >> > > "Validate the model"! I cliked it but it makes me error!! >> > > >> > > Maybe it's enough to save to know if my profile is correct >> or not.. >> > > >> > > >> > > Thanx a million! >> > > Marty >> > > >> > > 2009/5/11 <[email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>> >> > > <mailto:[email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>>>> >> > > >> > > Hello, >> > > >> > > did you create the metaclass to define the type of >> elements >> > you can >> > > apply your stereotypes? >> > > If you have your stereotype and the metaclass, don't >> forget >> > to click >> > > 'OK' in the dialog asking you to 'Define your profile'. >> > Normally, this >> > > action is enough to know if your profile is correct or >> not. >> > > >> > > regards, >> > > Laura. >> > > >> > > >> > > >> > > [email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>> >> > > <mailto:[email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>>> a écrit : >> > > > Hi, >> > > > I am using version: 2.5.0, I have to create a new >> profile >> > with some >> > > > new stereotypes. >> > > > I create a new profile, but when I create a new >> stereotype >> > and click >> > > > on validate model it makes me an error.. >> > > > My question is.. when I create a new profile I don't >> have to >> > > click on >> > > > validate model to know if my profile is correct??? >> > > > >> > > > Thanx a lot >> > > > Marty >> > > > >> > > >> > >> ------------------------------------------------------------------------ >> > > > >> > > > _______________________________________________ >> > > > Topcased-users mailing list >> > > > [email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>> >> > > <mailto:[email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>>> >> > > > >> > http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> > > >> > > >> > > _______________________________________________ >> > > Topcased-users mailing list >> > > [email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>> >> > > <mailto:[email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>>> >> > > >> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> > > >> > > >> > > >> > >> ------------------------------------------------------------------------ >> > > >> > > _______________________________________________ >> > > Topcased-users mailing list >> > > [email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>> >> > > >> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> > >> > >> > _______________________________________________ >> > Topcased-users mailing list >> > [email protected] >> <mailto:[email protected]> >> > <mailto:[email protected] >> <mailto:[email protected]>> >> > http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> > >> > >> > >> >> ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Topcased-users mailing list >> > [email protected] >> <mailto:[email protected]> >> > http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> >> >> _______________________________________________ >> Topcased-users mailing list >> [email protected] >> <mailto:[email protected]> >> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Topcased-users mailing list >> [email protected] >> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >> > > > _______________________________________________ > Topcased-users mailing list > [email protected] > http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users >
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
