Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to move endpoint of edges when Ends Centering configured as Both
How to move endpoint of edges when Ends Centering configured as Both [message #1712555] Mon, 26 October 2015 11:44 Go to next message
Huy Le is currently offline Huy LeFriend
Messages: 18
Registered: November 2014
Junior Member
As I see, Sirius does not allow to move endpoint of an edge, defined as Both Ends Centering.

An usecase is that, the diagram displays edge endcentering by default, it also allow users manually moving the edge endpoint from one position to another.

How to achieve it?

Thank you for your hints.
Huy.

Re: How to move endpoint of edges when Ends Centering configured as Both [message #1712612 is a reply to message #1712555] Mon, 26 October 2015 18:23 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 502
Registered: May 2011
Senior Member
Le 26/10/2015 12:44, Huy Le a écrit :
> As I see, Sirius does not allow to move endpoint of an edge, defined as
> Both Ends Centering.
>
> An usecase is that, the diagram displays edge endcentering by default,
> it also allow users manually moving the edge endpoint from one position
> to another.
>
> How to achieve it?
>
> Thank you for your hints.
> Huy.
>
>
Hello,

Indeed, the "Ends centering" option is defined to keep it centered even
if the user tries to change it manually.

You should define a ModelChangeTrigger, that will be triggered on
bendpoint move and will update the style by removing the end centering
(feature centered) on the moved end and add the "centered" feature to
the custom features (customFeatures).

Regards,
Steve

--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Access Class which is outside the Model
Next Topic:Superclass created when creating subclass
Goto Forum:
  


Current Time: Thu Jan 21 12:35:40 GMT 2021

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

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

Back to the top