Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Generating REQ_MOVE_CHILDREN request
Generating REQ_MOVE_CHILDREN request [message #1229229] Wed, 08 January 2014 20:07 Go to next message
Bartosz Popiela is currently offline Bartosz Popiela
Messages: 16
Registered: March 2012
Junior Member
Hi, I have a following problem. Smile
I have an arrow label that is movable vertically along arc from the beginning to the first bendpoint. I achieved this by overriding
XYLayoutEditPolicy.getConstraintFor(...)
method for REQ_MOVE_CHILDREN and REQ_RESIZE_CHILDREN requests. When I create new label it's not connected to arc.
index.php/fa/17183/0/
After I connect it it's repainted (the way described here - http://www.eclipse.org/forums/index.php/t/628027/) but it stays in the same position.
index.php/fa/17184/0/
When I move the figure it will correctly move to the arc - REQ_MOVE_CHILDREN request isgenerated and getConstraintFor method recalculate arrow figure location.
index.php/fa/17185/0/
I want to achieve this right after connecting label to arc. I thought I can generate fake REQ_MOVE_CHILDREN request to move arrow figure to arc. How can I generate fake REQ_MOVE_CHILDREN request? Is there a better way to do this? Can I update figure location in
AbstractEditPart.refreshVisuals(...)
method?
  • Attachment: figure1.PNG
    (Size: 3.34KB, Downloaded 144 times)
  • Attachment: figure2.PNG
    (Size: 2.68KB, Downloaded 144 times)
  • Attachment: figure3.PNG
    (Size: 2.52KB, Downloaded 145 times)

[Updated on: Thu, 09 January 2014 19:15]

Report message to a moderator

Re: Generating REQ_MOVE_CHILDREN request [message #1233456 is a reply to message #1229229] Sun, 19 January 2014 12:50 Go to previous message
Bartosz Popiela is currently offline Bartosz Popiela
Messages: 16
Registered: March 2012
Junior Member
I solved my problem by overriding
AbstractEditPart.refreshVisuals(...)
method.
Previous Topic:Need help with dependency issues
Next Topic:Non-overlapping Layout
Goto Forum:
  


Current Time: Thu Jul 31 23:58:22 EDT 2014

Powered by FUDForum. Page generated in 0.01600 seconds