Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
André Ribeiro is currently offline André Ribeiro
Messages: 48
Registered: January 2013
Member
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.


André Ribeiro
IST Lisbon
Portugal
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
Camille Letavernier is currently offline Camille Letavernier
Messages: 418
Registered: February 2011
Senior Member
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
André Ribeiro is currently offline André Ribeiro
Messages: 48
Registered: January 2013
Member
Hi Camille,

Thanks for the answer.
Not even using a Composite Structure Diagram?


André Ribeiro
IST Lisbon
Portugal
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
Camille Letavernier is currently offline Camille Letavernier
Messages: 418
Registered: February 2011
Senior Member
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
André Ribeiro is currently offline André Ribeiro
Messages: 48
Registered: January 2013
Member
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?


André Ribeiro
IST Lisbon
Portugal
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
tina tony is currently offline tina tony
Messages: 1
Registered: May 2013
Junior Member
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 39 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
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
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 26 01:23:08 EDT 2014

Powered by FUDForum. Page generated in 0.05363 seconds