Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Confusing Property Types(Papyrus, how to set property types)
Confusing Property Types [message #1763933] Tue, 23 May 2017 08:01 Go to next message
Philip Schröder is currently offline Philip SchröderFriend
Messages: 28
Registered: January 2017
Junior Member
Hello everybody,
and thank you for your help.

I am trying to understand how to set class property types in Papyrus class diagrams.
I want something like this

List<E> Attribute1
Map<K> Attribute2

As you see in the picture, I created a new class with a property Attribute1 and already tried the same as with Attribute2 with type <<ModelLibrary>> Ecore Primitive Types -> List.

Next with Attribute2 I tried with Map

index.php/fa/29430/0/

But somehow the type becomes E or likewise K not List<E> and Map<K>.

What I got to understand is, that when chosing a type, you can chose to set several properties (not in the sense of class diagrams) of the typed element.
So I don't have to chose one of the blue lined things under the type but can set all.

Appart from that, I didn't understand much, I can set the package and namespace like in object oriented languages, the owner is the element in which context the property appears, I guess, which seems somehow useless here since it already is a property of the class, so the context should be clear.
I guessed ownedElement is an Element in a bin of the Map as a key value pair,
but when I open it, the only thing I can only chose Redefinable Template Signature, no idea, what ownedElement is supposed to be now.
But what I wanted is to set a template signature anyway.
But I want the type to be the whole thing on the traversed tree, not just the template parameter.

What do I need to do to achieve that?

Thank you for your time and trouble.


Best regards

Philip.

[Updated on: Tue, 23 May 2017 08:03]

Report message to a moderator

Re: Confusing Property Types [message #1763948 is a reply to message #1763933] Tue, 23 May 2017 10:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
It would be better to ask on the Papyrus forum.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Confusing Property Types [message #1764017 is a reply to message #1763948] Wed, 24 May 2017 05:12 Go to previous messageGo to next message
Philip Schröder is currently offline Philip SchröderFriend
Messages: 28
Registered: January 2017
Junior Member
That is exactly why I asked the staff here afterwards to move the topic.
I didn't find any possible way to move it or delete and recreate it.

Do you know how to do it?

Best regards

Philip.

[Updated on: Wed, 24 May 2017 05:13]

Report message to a moderator

Re: Confusing Property Types [message #1764024 is a reply to message #1764017] Wed, 24 May 2017 07:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
I'm not sure there is a way to do that. I don't know how in any case. Just create a new posting...

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Understanding UML file for parametric diagrams
Next Topic:User Model for C++ Template Containers
Goto Forum:
  


Current Time: Tue Apr 16 13:27:09 GMT 2024

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

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

Back to the top