Skip to main content


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 11:32 Go to next message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
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 11:36 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
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


Camille Letavernier
Re: Class Diagram with inner classes [message #1031940 is a reply to message #1031934] Tue, 02 April 2013 11:41 Go to previous messageGo to next message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
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 09:46 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
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


Camille Letavernier
Re: Class Diagram with inner classes [message #1032768 is a reply to message #1032685] Wed, 03 April 2013 12:12 Go to previous messageGo to next message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
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 17:54 Go to previous messageGo to next message
tina tony is currently offline tina tonyFriend
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 415 times)
Re: Class Diagram with inner classes [message #1059291 is a reply to message #1059105] Thu, 16 May 2013 19:05 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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: Fri Mar 29 10:46:37 GMT 2024

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

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

Back to the top