Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Create Sequence diagram
Create Sequence diagram [message #1805684] Sun, 21 April 2019 15:45 Go to next message
Oliver Holdt is currently offline Oliver HoldtFriend
Messages: 9
Registered: April 2019
Junior Member
Hi everyone,
I'm new to eclipse plugin development and papyrus. I got the task to create a sequence diagram programmatically via papyrus. I used https://wiki.eclipse.org/Papyrus/Papyrus_Developer_Guide/CreateProgrammatically to get started. Now i'm stuck at creating a lifeline to use the addLifeline method. How can I create own.
Thanks in advance.
Re: Create Sequence diagram [message #1805835 is a reply to message #1805684] Thu, 25 April 2019 08:04 Go to previous messageGo to next message
Oliver Holdt is currently offline Oliver HoldtFriend
Messages: 9
Registered: April 2019
Junior Member
Found it out myself via this forum entry https://www.eclipse.org/forums/index.php/t/150430/
Re: Create Sequence diagram [message #1805871 is a reply to message #1805835] Fri, 26 April 2019 07:31 Go to previous messageGo to next message
Antonio Campesino is currently offline Antonio CampesinoFriend
Messages: 56
Registered: August 2016
Member
Hi,

If you are interested on Sequence Diagrams in Papyrus, there is a feature patch for papyrus that it is being implemented fixing some of the major issues of the current implemnetation. You may want to take a look: https://github.com/ericsson/Papyrus-patches.

In any case if you take a look at the source code, class InteractionGraphCommand (https://github.com/Ericsson/papyrus-patches/blob/master/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/runtime-src/org/eclipse/papyrus/uml/diagram/sequence/runtime/internal/interactiongraph/commands/InteractionGraphCommand.java), there is a lot of code that create the notation views for the different elements in the sequence diagram.

If you decide to install the patch, you could use the InteractionGraphCommand high level API + the InteractionGraph class to create / update the whole diagram programatically...

I hope it helps,

Antonio





Re: Create Sequence diagram [message #1805924 is a reply to message #1805871] Sun, 28 April 2019 08:31 Go to previous message
Oliver Holdt is currently offline Oliver HoldtFriend
Messages: 9
Registered: April 2019
Junior Member
Thanks Antonio,
I'll have a look at it if doesn't work out the native way. I found the actual example from papyrus which helps a lot
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/tree/examples/uml/org.eclipse.papyrus.uml.diagram.example.programmaticcreation/src/org/eclipse/papyrus/uml/diagram/example/programmaticcreation/CreateSequenceDiagramElementsCommand.java?id=921e050373ff74f9367fb9c9c8ca618b4e97928a
Previous Topic:Dispose execution engine resources.Dispose Moka services
Next Topic:What Industry Wants from Academia in Software Modeling
Goto Forum:
  


Current Time: Fri Mar 29 00:19:55 GMT 2024

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

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

Back to the top