Skip to main content


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 18:09 Go to next message
edipo federle is currently offline edipo federleFriend
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 18:13 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
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 18:34 Go to previous messageGo to next message
edipo federle is currently offline edipo federleFriend
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 20:34 Go to previous messageGo to next message
edipo federle is currently offline edipo federleFriend
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 13:12 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
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: Fri Apr 19 16:29:03 GMT 2024

Powered by FUDForum. Page generated in 0.04060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top