Skip to main content



      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 05:44 Go to next message
Eclipse UserFriend
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 11:42 Go to previous message
Eclipse UserFriend
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
Previous Topic:Sequence Diagram
Next Topic:Programmatically Create Modeling Project Issues
Goto Forum:
  


Current Time: Sat May 17 01:50:20 EDT 2025

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

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

Back to the top