Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Extend a Sequence Diagram(It is possible to extend a Sequence Diagram)
Extend a Sequence Diagram [message #1849305] Wed, 12 January 2022 10:44 Go to next message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
Hi all,

I just starts working with Sequence Diagrams and I will like to extend an existing one by using the Diagram Extension feature. Specifically, I will like to extend an Execution with ConditionalStyles. Is this currently supported? I inspect the odesign but I cannot find any specific way to import an execution like it is done with Nodes, Containers, or Edges. So, as a workaround, I tried to use the element "Import Node" to do so but I got this error.

java.lang.ClassCastException: class org.eclipse.sirius.diagram.sequence.business.internal.metamodel.SequenceDDiagramSpec cannot be cast to class org.eclipse.sirius.diagram.DDiagramElement (org.eclipse.sirius.diagram.sequence.business.internal.metamodel.SequenceDDiagramSpec is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @966c6ee; org.eclipse.sirius.diagram.DDiagramElement is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @176873fb)
	at org.eclipse.sirius.diagram.sequence.business.internal.elements.AbstractNodeEvent$SiriusElementPredicate.apply(AbstractNodeEvent.java:73)
	at org.eclipse.sirius.diagram.sequence.business.internal.elements.AbstractNodeEvent$SiriusElementPredicate.apply(AbstractNodeEvent.java:1)
	at com.google.common.base.Predicates$OrPredicate.apply(Predicates.java:395)


I am using Eclipse 2021-06 with Sirius 6.6. Any suggestions? Any workarounds?

Thanks in advance!

Kind regards,
Anthony
Re: Extend a Sequence Diagram [message #1849412 is a reply to message #1849305] Tue, 18 January 2022 16:42 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Anthony,

The ImportNode mapping can only be used on standard diagrams to import other node mappings. It cannot be used to import Sequence execution mapping.
This kind of mapping will not be seen by a Sequence Diagram as a Sequence mapping with the required properties expected by the layout.

If you want to extend an existing diagram, you might try the following approach (I have not tested it and I might not be supported on Sequence Diagrams):
* Take a look to https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#customization
* You could try to create a Sequence Diagram Extension referencing your existing sequence diagram description
* Add provide a Layer (can be non optional and active by default) : the user would just to install and enable your Viewpoint
* Add Style customizations

Regards


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Sequence Diagram
Next Topic:Programmatically Create Modeling Project Issues
Goto Forum:
  


Current Time: Tue Dec 05 02:23:09 GMT 2023

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

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

Back to the top