Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Figure move border
Figure move border [message #1224467] Thu, 26 December 2013 15:51 Go to next message
Bartosz Popiela is currently offline Bartosz Popiela
Messages: 16
Registered: March 2012
Junior Member
I try to change my custom label (rectangle with "sender" text) behavior while moving. It should be movable only along arc connector (line between circle and black line). I achieved it by overriding
org.eclipse.gmf.runtime.diagram.ui.editpolicies.XYLayoutEditPolicy.getConstraintFor(ChangeBoundsRequest request, GraphicalEditPart child)
method in my custom EditPolicy (installed as org.eclipse.gef.EditPolicy.LAYOUT_ROLE) and modifying returned constraints if editPart is instance of MyCustomLabelEditPart. But when I move my label, then some weird border appears.
How can I modify change MoveCommand for this border or disable it? Smile

index.php/fa/17130/0/
  • Attachment: sender.PNG
    (Size: 2.84KB, Downloaded 86 times)

[Updated on: Thu, 26 December 2013 15:53]

Report message to a moderator

Re: Figure move border [message #1224857 is a reply to message #1224467] Fri, 27 December 2013 19:40 Go to previous message
Bartosz Popiela is currently offline Bartosz Popiela
Messages: 16
Registered: March 2012
Junior Member
Solved! I had EditPolicy.PRIMARY_DRAG_ROLE installed that was creating MoveHandle and didn't remove it.
Previous Topic:Change EditPart figure dynamically
Next Topic:Need help with dependency issues
Goto Forum:
  


Current Time: Wed Aug 20 01:02:57 EDT 2014

Powered by FUDForum. Page generated in 0.42473 seconds