Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problems with reordering and transfering shapes.
Problems with reordering and transfering shapes. [message #222392] Fri, 01 September 2006 06:41
Eclipse UserFriend
Originally posted by:


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!
Previous Topic:Post Comments on Proposal for Background support in Figures
Next Topic:Problem with Display Property of Ruler and Guide in PropertyView
Goto Forum:

Current Time: Tue Jun 19 21:42:11 GMT 2018

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

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

Back to the top