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] Thu, 09 January 2014 01:07 Go to next message
Bartosz Popiela is currently offline Bartosz Popiela
Messages: 21
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 155 times)
  • Attachment: figure2.PNG
    (Size: 2.68KB, Downloaded 157 times)
  • Attachment: figure3.PNG
    (Size: 2.52KB, Downloaded 158 times)

[Updated on: Fri, 10 January 2014 00:15]

Report message to a moderator

Re: Generating REQ_MOVE_CHILDREN request [message #1233456 is a reply to message #1229229] Sun, 19 January 2014 17:50 Go to previous message
Bartosz Popiela is currently offline Bartosz Popiela
Messages: 21
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: Wed Oct 22 06:41:13 GMT 2014

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

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