|
|
Re: Select and resize children in compartments [message #634851 is a reply to message #634548] |
Sun, 24 October 2010 16:39 |
Volker Wegert Messages: 182 Registered: July 2009 |
Senior Member |
|
|
Hello, Aurelien,
Aurelien Pupier <aurelien.pupier@bonitasoft.com> writes:
> I think that you need to take a look at SelectionEditPolicy and
> LayoutEditPolicy.
with your hint I've succeeded in making the selection visible - simply by
adding installEditPolicy(EP.SELECTION_FEEDBACK_ROLE,
getPrimaryDragEditPolicy()) to the Node EditPart createDefaultEditPolicies
method. Using the gmfgraph/gmfmap attributes, I was also able to restrict the
usage of the resizing handles so that only the width of the contained objects
can be changed.
However, I still can't really change the width, only drag it
around. From your comment and some debugging, I guess that I need a
LayoutEditPolicy for the Compartment that contains the columns. If I
understand the code correctly, my decision (or rather the hint from the
tutorial) to use the ConstrainedToolbarLayoutEditPolicy on the table
compartment might be a bad idea for my application. I want the columns to
always use the entire height of the surrounding compartment and to be of a
fixed width (that is also stored in my domain model). With this in mind, I
think it might be a better idea to write my own layout manager for the
compartment than trying to tweak the ConstrainedToolbarLEP. Does this sound
coherent or am I missing something again?
Thanks
Volker
--
* Volker Wegert * http://www.volker-wegert.de/contact *
The three Rs of Microsoft support: Retry, Reboot, Reinstall.
|
|
|
Powered by
FUDForum. Page generated in 0.08210 seconds