Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » select container editpart
select container editpart [message #168658] Thu, 17 February 2005 16:25 Go to next message
Eclipse UserFriend
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 16:47 Go to previous message
Eclipse UserFriend
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
Previous Topic:permanent cursor
Next Topic:Problem deploying a plugin
Goto Forum:
  


Current Time: Fri Apr 26 20:33:26 GMT 2024

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

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

Back to the top