Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Invalid Profile When Save
Invalid Profile When Save [message #1004712] Wed, 23 January 2013 13:09 Go to next message
edipo federle is currently offline edipo federle
Messages: 21
Registered: November 2012
Junior Member
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
Re: Invalid Profile When Save [message #1004715 is a reply to message #1004712] Wed, 23 January 2013 13:13 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. Damus
Messages: 768
Registered: July 2009
Senior Member
What is the problem? You refer to a problem but don't indicate what it is.

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
Re: Invalid Profile When Save [message #1004721 is a reply to message #1004715] Wed, 23 January 2013 13:34 Go to previous messageGo to next message
edipo federle is currently offline edipo federle
Messages: 21
Registered: November 2012
Junior Member
Sorry. the problem is that I cannot save the profile when I create a property into a stereotype and, for example, set this property with Integer.

When I save the follow message is show:

Profile Not Valid
the profile cannot be defined because it is invalid


....

Thnaks
Re: Invalid Profile When Save [message #1004763 is a reply to message #1004712] Wed, 23 January 2013 15:34 Go to previous messageGo to next message
edipo federle is currently offline edipo federle
Messages: 21
Registered: November 2012
Junior Member
I managed to set a property type using the UML model by Editor ....

But the list type, I have not found String-UMLPrimitiveType.

...
Re: Invalid Profile When Save [message #1005091 is a reply to message #1004763] Thu, 24 January 2013 08:12 Go to previous message
Christian W. Damus is currently offline Christian W. Damus
Messages: 768
Registered: July 2009
Senior Member
On 2013-01-23 20:34:56 +0000, edipo federle said:

> 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.

HTH,

Christian
Previous Topic:Embed papyrus into RCP application
Next Topic:ActionExecutionSpecification vs. BehaviorExecutionSpecification
Goto Forum:
  


Current Time: Sat Aug 23 11:22:29 EDT 2014

Powered by FUDForum. Page generated in 0.02420 seconds