Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to create C# or custom data types
icon2.gif  How to create C# or custom data types [message #1714419] Thu, 12 November 2015 14:22 Go to next message
Konstantin Ribel is currently offline Konstantin RibelFriend
Messages: 3
Registered: November 2015
Junior Member
Hello all!

I need to create C# data types in Papyrus as the ones that I can import are not sufficient enough. I thought about having a profile that I can import into my model project to be able to reuse those custom datatypes in other Papyrus projects. Is that possible?

I had already a look at the thread Custom primitive types, but did not succeed to create any data types that I could import into my project.

Unfortunately I don't know where to start. Crying or Very Sad
Could anybody please point me into the right direction?

Many thanks!
Konstantin

[Updated on: Thu, 12 November 2015 16:04]

Report message to a moderator

Re: How to create custom data types [message #1714430 is a reply to message #1714419] Thu, 12 November 2015 16:13 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1206
Registered: July 2009
Location: Canada
Senior Member

Hi, Konstantin,

If you need to define data types that are sharable amongst models, then
you probably want to create a "library model", not a profile. Profiles
extend the UML to create custom languages.

Library models are exactly the packages that you can import into your
models using the "Import Registered Package" menu action, for example
the UML Primitive Types or Java Primitive Types libraries that ship
with Papyrus.

To create your own library model, just create a Papyrus UML model as
you normally would and add DataTypes to it. You can apply the UML
Standard Profile to your model and stereotype it as <<Library>> if you
want, but that's not necessary (though it is informative).

You can then import this library into other models using the "Import
Package from user Model" menu action in the Model Explorer and picking
your library model from your workspace.

HTH,

Christian


On 2015-11-12 15:55:00 +0000, Konstantin Ribel said:

> Hello all!
>
> I need to create custom data types in Papyrus as the ones that I can
> import are not sufficient enough. I thought about having a profile that
> I can import into my model project to be able to reuse those custom
> datatypes in other model projects. Is that possible?
>
> Unfortunately I don't know where to start. :cry: Could anybody please
> point me into the right direction?
>
> Many thanks!
> Konstantin
Re: How to create custom data types [message #1714437 is a reply to message #1714430] Thu, 12 November 2015 16:36 Go to previous message
Konstantin Ribel is currently offline Konstantin RibelFriend
Messages: 3
Registered: November 2015
Junior Member
Hello Christian!

It is really simple! I spend hours before trying to figure out how to use a profile to do that...

Thank you very much!
Konstantin
Previous Topic:Sequence diagram question
Next Topic:Importing XML model
Goto Forum:
  


Current Time: Mon Jul 06 07:02:24 GMT 2020

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

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

Back to the top