Skip to main content



      Home
Home » Modeling » Papyrus » Class Diagram with inner classes
Class Diagram with inner classes [message #1031927] Tue, 02 April 2013 07:32 Go to next message
Eclipse UserFriend
Hello everyone,

I need to do diagrams like the one below, i.e., classes containing inner classes which show their attributes and operations. Any guess how can I do this using Papyrus?

index.php/fa/14209/0/

Thanks.
Re: Class Diagram with inner classes [message #1031934 is a reply to message #1031927] Tue, 02 April 2013 07:36 Go to previous messageGo to next message
Eclipse UserFriend
Hi, André,

You can't do that in Papyrus. There are two ways to represent nested classifiers:

- Compartment: The classes are represented inline in a "nested classifier" compartment. You only see the Classifier's name and its visibility (Text only, just like an association or a property)
- Containment link: You can draw a "Containment link" between two classes. They will be displayed side-by-side, and you can display the structure/contents of the Nested classifier.

Regards,
Camille
Re: Class Diagram with inner classes [message #1031940 is a reply to message #1031934] Tue, 02 April 2013 07:41 Go to previous messageGo to next message
Eclipse UserFriend
Hi Camille,

Thanks for the answer.
Not even using a Composite Structure Diagram?
Re: Class Diagram with inner classes [message #1032685 is a reply to message #1031940] Wed, 03 April 2013 05:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

With Composite Diagrams, you can show the inner Structure of a classifier, but you cannot display the attributes (parts) inline, in a distinct compartment. And you can't display operations at all.

Regards,
Camille
Re: Class Diagram with inner classes [message #1032768 is a reply to message #1032685] Wed, 03 April 2013 08:12 Go to previous messageGo to next message
Eclipse UserFriend
Once again, thanks for answering Camille.
Is there any way I can create a custom diagram of this kind (showing the attributes and operations compartments) using Papyrus?
Re: Class Diagram with inner classes [message #1059105 is a reply to message #1032768] Thu, 16 May 2013 13:54 Go to previous messageGo to next message
Eclipse UserFriend
hi everyone,

hope someone can help me with this problem.

i want to write an operation like this: getID(): int but papyrus automaticaly write i like this way : getID():int()

what can i do to write my operations on my own?

thanks very much for helping
  • Attachment: papyrus.jpg
    (Size: 31.85KB, Downloaded 469 times)
Re: Class Diagram with inner classes [message #1059291 is a reply to message #1059105] Thu, 16 May 2013 15:05 Go to previous message
Eclipse UserFriend
Hi

Write getID

Regards

Ed Willink

On 16/05/2013 18:57, tina tony wrote:
> hi everyone,
>
> hope someone can help me with this problem.
>
> i want to write an operation like this: getID(): int but papyrus automaticaly write i like this way : getID():int()
>
> what can i do to write my operations on my own?
>
> thanks very much for helping
Previous Topic:Integrating xtext: cannot resolve references in integrated xtext editor
Next Topic:Critical Exception in latest M7 build
Goto Forum:
  


Current Time: Sat Jul 05 12:28:37 EDT 2025

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

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

Back to the top