|Problems with reordering and transfering shapes. [message #222392]
||Fri, 01 September 2006 06:41
Originally posted by: lod.staff.civ.org.pl|
I'm currently coding a simple editor as a part of learning GEF. It is
very similar to the Database Scheme Editor example, ie. there are
containers whose content panes implement a FlowLayout; children may be
added to those containers.
I've ran into two problems when resizing and reordering children within
and between containers (using an extension of FlowLayoutEditPolicy), namely:
1. I'm unable to move a child to the last position in a container.
I've noticed that in createMoveChildCommand() the "after" argument is
null both when the child is placed at the beginning of the list
(logical) and at the end of the list (not so logical).
2. I can't transfer an existing child to a container with no children.
I've observed here that, when moving the child over the "empty"
container, createAddCommand() seems not to be called at all.
As far as I can see, the Database Scheme Example has the same
limitations, but I'm hoping for a possible workaround.
Thanks in advance for any help!
Powered by FUDForum
. Page generated in 0.02504 seconds