Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Non-Movable BorderNode
Non-Movable BorderNode [message #1705734] Tue, 18 August 2015 16:04 Go to next message
Bailey Trenton is currently offline Bailey TrentonFriend
Messages: 31
Registered: May 2015
Member
Hello,
I am wondering if it is possible to make a Bordernode that is not movable. I have tried using a custom editpolicy but that doesn't seem to work. I have tried installing my editpolicy using many different roles(LAYOUT, PRIMARY_DRAG_DROP, DRAG_DROP) but none of them seem to register movement of the bordernodes.

Any suggestions would be appreciated.
Thanks,
Bailey
Re: Non-Movable BorderNode [message #1705782 is a reply to message #1705734] Wed, 19 August 2015 07:49 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hello,

In Sirius, the EditPolicy responsible for moving and resizing border
nodes is
org.eclipse.sirius.diagram.ui.graphical.edit.policies.SpecificBorderItemSelectionEditPolicy.
You could add a breakpoint in debug and see why this EditPolicy is still
used. The SpecificBorderItemSelectionEditPolicy is probably registered
in a way that it will override external contributions. You may also need to override some editParts.

Regards,

Florian


On 08/18/2015 06:04 PM, Bailey Trenton wrote:
> Hello,
> I am wondering if it is possible to make a Bordernode that is not
> movable. I have tried using a custom editpolicy but that doesn't seem
> to work. I have tried installing my editpolicy using many different
> roles(LAYOUT, PRIMARY_DRAG_DROP, DRAG_DROP) but none of them seem to
> register movement of the bordernodes.
>
> Any suggestions would be appreciated.
> Thanks,
> Bailey


--
Florian - Obeo

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

[Updated on: Fri, 21 August 2015 15:36]

Report message to a moderator

Previous Topic:Diagram Coordinates
Next Topic:Custom Edge Centering
Goto Forum:
  


Current Time: Fri Apr 26 16:42:11 GMT 2024

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

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

Back to the top