Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsInvalid Profile When Save
https://www.eclipse.org/forums/index.php/mv/msg/451683/1004712/#msg_1004712
I have a profile project created on Papyrus. I add a stereotype and save it. Until now everthing work fine. The problem appear in the moment of add a property into stereotype. More exactly when I import primitive types.
In short, the problem happens when I apply a type to a property and save it.
SSomeone know what can be ?
Thanks]]>edipo federle2013-01-23T18:09:05-00:00Re: Invalid Profile When Save
https://www.eclipse.org/forums/index.php/mv/msg/451683/1004715/#msg_1004715
Cheers,
Christian
On 2013-01-23 18:09:06 +0000, edipo federle said:
> Hi,
>
> I have a profile project created on Papyrus. I add a stereotype and
> save it. Until now everthing work fine. The problem appear in the
> moment of add a property into stereotype. More exactly when I import
> primitive types.
>
> In short, the problem happens when I apply a type to a property and save it.
>
> SSomeone know what can be ?
>
> Thanks]]>Christian Damus2013-01-23T18:13:48-00:00Re: Invalid Profile When Save
https://www.eclipse.org/forums/index.php/mv/msg/451683/1004721/#msg_1004721
When I save the follow message is show:
Profile Not Valid
the profile cannot be defined because it is invalid
....
Thnaks]]>edipo federle2013-01-23T18:34:20-00:00Re: Invalid Profile When Save
https://www.eclipse.org/forums/index.php/mv/msg/451683/1004763/#msg_1004763
But the list type, I have not found String-UMLPrimitiveType.
...]]>edipo federle2013-01-23T20:34:56-00:00Re: Invalid Profile When Save
https://www.eclipse.org/forums/index.php/mv/msg/451683/1005091/#msg_1005091
> I managed to set a property type using the UML model by Editor ....
Do you mean that you weren't using the Papyrus editor, before? Were
you just editing the XML in a text editor?
Anyways, it seems that you have gotten past the "Invalid Profile" error
on save, so that's good.
> But the list type, I have not found String-UMLPrimitiveType.
What list? Do you mean that you want a property that is a list of
strings? That's a property of type String with an upperBound greater
than one. A typical unbounded multiplicity is [0..*].
Or is it a problem of knowing where the String type is defined? It's
in the same place that you found the Integer type: the UML Primitive
Types library model. A new Papyrus profile imports the UML Primitive
Types for you if you used the suggested template when creating the
profile, so it should be available in the property sheet for you
stereotype property. If you don't have the primitive types imported in
your profile, then you can fix that using the "Import Registered
Package" action in the context menu of the profile in the Model
Explorer.