Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Importing OMG's Profiles(How To)
Importing OMG's Profiles [message #871202] Fri, 11 May 2012 12:35 Go to next message
nicolas h is currently offline nicolas hFriend
Messages: 60
Registered: February 2011
Location: Grenoble, France
Member
Hi,

I try to use the SPEM profile from the OMG into Papyrus, but I don't see the way to do this.

Here are the steps I follow, based on this topic :

1) I download the SPEM profile and rename into "spem.profile.uml"
2) I right-click on the profile and select new/papyrus model
Default name proposed by papyrus is "spem.di" so I have an error message to advise me to use the same name as domain model file name (spem.profile.di)
3) I rename the file "spem.profile.di" so as to move on the next stage
4) I check the Profile radio button in the "Select language of the diagram" page
5) I check the checkbox "UML Profile Diagram" so as to create a UML Profile Diagram once the wizard is finished. I don't know why, but in this case I can't create new UML Profile Diagram from the right-click inside the Model Explorer
6) The last page lets me select the root element. There is a bug on the labels (see Figure below)
7) Finally, I click on the Finish button and nothing is being done.

Is there any way to use the SPEM profile inside Papyrus ?


I use Papyrus 0.8.2 on Eclipse Indigo Service Release 1.


Thank you,


regards,


--
Nicolas
Re: Importing OMG's Profiles [message #871356 is a reply to message #871202] Sat, 12 May 2012 10:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Your SPEM file uses "http://schema.omg.org/spec/UML/2.1.1" which is an
OMG nsURI recognised by MDT/UML2. But:

When using OMG nsURIs, you must use *.xmi rather than *.uml extensions
unless you take care to revise the content registrations.

Similarly, when using MDT/UML2 nsURIs, you must use *.uml rather than
*.xmi extensions.

When having trouble with models, don't try to user advanced modeling
tools until your files load successfully in the Sample Ecore Editor or
UML Model Editor.

Regards

Ed Willink


On 11/05/2012 13:35, nicolas h wrote:
> Hi,
>
> I try to use the http://www.omg.org/spec/SPEM/20070801/SPEM%202.0%20UML%202%20Profile.xmi from the OMG into Papyrus, but I don't see the way to do this.
>
> Here are the steps I follow, based on http://www.eclipse.org/forums/index.php/m/819764/#msg_819764 :
>
> 1) I download the SPEM profile and rename into "spem.profile.uml"
> 2) I right-click on the profile and select new/papyrus model
> Default name proposed by papyrus is "spem.di" so I have an error message to advise me to use the same name as domain model file name (spem.profile.di)
> 3) I rename the file "spem.profile.di" so as to move on the next stage
> 4) I check the Profile radio button in the "Select language of the diagram" page
> 5) I check the checkbox "UML Profile Diagram" so as to create a UML Profile Diagram once the wizard is finished. I don't know why, but in this case I can't create new UML Profile Diagram from the right-click inside the Model Explorer
> 6) The last page lets me select the root element. There is a bug on the labels (see Figure below)
> 7) Finally, I click on the Finish button and nothing is being done.
>
> Is there any way to use the SPEM profile inside Papyrus ?
>
>
> I use Papyrus 0.8.2 on Eclipse Indigo Service Release 1.
>
>
> Thank you,
>
>
> regards,
>
>
Re: Importing OMG's Profiles [message #1212596 is a reply to message #871356] Wed, 27 November 2013 00:11 Go to previous messageGo to next message
David Frankel is currently offline David FrankelFriend
Messages: 3
Registered: November 2013
Junior Member
Hi Ed,

In your response above you refer to the "UML Model Editor." Would that be located at the "runtime" link on this Web page?: http://eclipse.org/modeling/mdt/downloads/?project=uml2tools

Thanks.

--Dave
Re: Importing OMG's Profiles [message #1213403 is a reply to message #1212596] Wed, 27 November 2013 08:13 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Yes. The Eclipse UML project provides no graphical UML tooling; just
models, Java API and the tree-style UML Model Editor.

Regards

Ed Willink

On 27/11/2013 00:11, David Frankel wrote:
> Hi Ed,
>
> In your response above you refer to the "UML Model Editor." Would
> that be located at the "runtime" link on this Web page?:
> http://eclipse.org/modeling/mdt/downloads/?project=uml2tools
>
> Thanks.
>
> --Dave
Re: Importing OMG's Profiles [message #1214084 is a reply to message #1212596] Wed, 27 November 2013 14:34 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Dave,

That URL is for the UML2Tools project, which aimed to provide diagram
editors for UML but is, I think, no longer active.

What you want is the run-time feature of the UML2 project:

http://eclipse.org/modeling/mdt/downloads/?project=uml2

With the SDK feature you will also get all of the API sources and some
additional editor functions such as conversion of UML class models
to/from Ecore.

HTH,

Christian

On 2013-11-27 00:11:36 +0000, David Frankel said:

> Hi Ed,
>
> In your response above you refer to the "UML Model Editor." Would that
> be located at the "runtime" link on this Web page?:
> http://eclipse.org/modeling/mdt/downloads/?project=uml2tools
>
> Thanks.
>
> --Dave
Previous Topic:Lost functionality after installing Mylyn
Next Topic:How to declare TimeEvent?
Goto Forum:
  


Current Time: Thu Apr 25 20:12:55 GMT 2024

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

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

Back to the top