Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Automatic Figure Rotation (Rotation Figure after shift position)
Automatic Figure Rotation [message #1749293] Mon, 05 December 2016 09:08 Go to next message
Francesco Gallo is currently offline Francesco GalloFriend
Messages: 9
Registered: December 2015
Junior Member
Dear all,

in my Sirius editor i have node and border node. The later are attached to node. Please, see Img1.

I would like that when shift the border node position on node, the border node can change...For example, automatically rotate to some degree.
In Img2, you can see that the image is the same.

I thing that i need to use more image, that changing related to border node on the node.
But How?

Thank a lot for your time
  • Attachment: Img2.png
    (Size: 16.99KB, Downloaded 179 times)
Re: Automatic Figure Rotation [message #1749294 is a reply to message #1749293] Mon, 05 December 2016 09:10 Go to previous messageGo to next message
Francesco Gallo is currently offline Francesco GalloFriend
Messages: 9
Registered: December 2015
Junior Member
..and Img1
  • Attachment: Img1.png
    (Size: 12.56KB, Downloaded 187 times)
Re: Automatic Figure Rotation [message #1749311 is a reply to message #1749293] Mon, 05 December 2016 11:18 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
I don't know *how* it works, but I know that this is done in Capella (https://polarsys.org/capella/). On this page there is a screenshot with ports that contain small arrows that are rotated automatically. You could try and investigate their .odesign/sourcecode.
Re: Automatic Figure Rotation [message #1749319 is a reply to message #1749293] Mon, 05 December 2016 12:58 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Francesco,

You can find this kind of feature in UML Designer for required interface, there is a rotatable figure whose angle depends on the source edge direction (only four different positions corresponding for the moment). The code is here : https://github.com/ObeoNetwork/UML-Designer/tree/master/plugins/org.obeonetwork.gmf.runtime.diagram.ui.extension

You will find how to use it in the the schema documentation

You can also how it is declared in ULM Designer: look for point="org.obeonetwork.gmf.runtime.diagram.ui.extension.rotatableNode" in
https://github.com/ObeoNetwork/UML-Designer/blob/master/plugins/org.obeonetwork.dsl.uml2.design/plugin.xml

You can see them work on the Component Diagram:http://obeonetwork.github.io/UML-Designer/ref-doc/define-the-application.html#Component_Diagram

Regards,

Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Workaround for Execution of Creation Tools on different Container
Next Topic:Error (Sequence Diagram for my DSL)
Goto Forum:
  


Current Time: Wed Nov 13 15:28:30 GMT 2024

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

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

Back to the top