Skip to main content


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 20:51 Go to next message
Bartosz Popiela is currently offline Bartosz PopielaFriend
Messages: 21
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 522 times)

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

Report message to a moderator

Re: Figure move border [message #1224857 is a reply to message #1224467] Sat, 28 December 2013 00:40 Go to previous message
Bartosz Popiela is currently offline Bartosz PopielaFriend
Messages: 21
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: Tue Mar 19 10:26:54 GMT 2024

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

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

Back to the top