select container editpart [message #168658] |
Thu, 17 February 2005 11:25  |
Eclipse User |
|
|
|
Originally posted by: none.none.com
Hi,
I have an EditPart container that contains one or several EditPart, that
take the whole space inside the container (think cell=container, image/text
as content). As a result, it's very difficult to select the container
(sometimes possible by clicking on the border). I was trying to see if I
could do something like in Word, where you can select a cell versus the cell
content by hovering the mouse on the left bottom corner of the cell (and the
mouse appearance change to indicate that you will select the cell), but I
don't find any mechanism allowing that in GEF. In fact the SelectionTool
doesn't even fire an hover event to the container editpart when there is
some contents in it, I guess because it only sees the child figures. What's
the best way to solve my problem?
Thanks,
David
|
|
|
Re: select container editpart [message #168674 is a reply to message #168658] |
Thu, 17 February 2005 11:47  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
David Michonneau wrote:
> Hi,
>
> I have an EditPart container that contains one or several EditPart, that
> take the whole space inside the container (think cell=container, image/text
> as content). As a result, it's very difficult to select the container
> (sometimes possible by clicking on the border). I was trying to see if I
> could do something like in Word, where you can select a cell versus the cell
> content by hovering the mouse on the left bottom corner of the cell (and the
> mouse appearance change to indicate that you will select the cell), but I
> don't find any mechanism allowing that in GEF. In fact the SelectionTool
> doesn't even fire an hover event to the container editpart when there is
> some contents in it, I guess because it only sees the child figures. What's
> the best way to solve my problem?
>
> Thanks,
>
> David
>
>
the container itself will be returned as the selection when there are no
other active selections. So you need only clear the current selection
to get that. But i'm not sure hwo you can get visual indication of that.
CL
|
|
|
Powered by
FUDForum. Page generated in 0.03486 seconds