Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Click on child, how to select parent instead
Click on child, how to select parent instead [message #174589] Wed, 30 March 2005 22:30 Go to next message
Eclipse UserFriend
Originally posted by: Craig.OfficeExtend.com

I'm implementing a tabset for use in a screen designer. I have a tabset
editpart that contains tabpage editparts. On the figure side, the tabset
figure contains tabpage figures (one visible at a time) which consume the
tabset's entire client area. When I click on the tabpage I would like
instead to select the tabset parent. But if I click on some other figure
contained in the tabpage, I would like to select that child as normal.

I think this is an easy one, but I've spent too much time on it not to
simply ask the question.

How can I cause one editpart to be selected after clicking on another (in
this case a child)?
Re: Click on child, how to select parent instead [message #174611 is a reply to message #174589] Thu, 31 March 2005 00:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bashar.infromatik.uni-bonn.de

Override the child edit part's ".getTargetEditPart(Request request)" method
to return the parent edit part in response to a "SelectionRequest". @see
EditPart#getParent(), EditPart#getTargetEditPart(Request request).


"Craig Fransen" <Craig@OfficeExtend.com> wrote in message
news:d2f9e2$gcb$1@news.eclipse.org...
> I'm implementing a tabset for use in a screen designer. I have a tabset
> editpart that contains tabpage editparts. On the figure side, the tabset
> figure contains tabpage figures (one visible at a time) which consume the
> tabset's entire client area. When I click on the tabpage I would like
> instead to select the tabset parent. But if I click on some other figure
> contained in the tabpage, I would like to select that child as normal.
>
> I think this is an easy one, but I've spent too much time on it not to
> simply ask the question.
>
> How can I cause one editpart to be selected after clicking on another (in
> this case a child)?
>
>
Re: Click on child, how to select parent instead [message #174619 is a reply to message #174611] Thu, 31 March 2005 00:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Craig.OfficeExtend.com

Or, apparently, per your hints, override isSelectable() to return false.

"Md. Abul Bashar" <bashar@infromatik.uni-bonn.de> wrote in message
news:d2fgdb$om0$1@news.eclipse.org...
>
> Override the child edit part's ".getTargetEditPart(Request request)"
method
> to return the parent edit part in response to a "SelectionRequest". @see
> EditPart#getParent(), EditPart#getTargetEditPart(Request request).
>
>
> "Craig Fransen" <Craig@OfficeExtend.com> wrote in message
> news:d2f9e2$gcb$1@news.eclipse.org...
> > I'm implementing a tabset for use in a screen designer. I have a tabset
> > editpart that contains tabpage editparts. On the figure side, the
tabset
> > figure contains tabpage figures (one visible at a time) which consume
the
> > tabset's entire client area. When I click on the tabpage I would like
> > instead to select the tabset parent. But if I click on some other
figure
> > contained in the tabpage, I would like to select that child as normal.
> >
> > I think this is an easy one, but I've spent too much time on it not to
> > simply ask the question.
> >
> > How can I cause one editpart to be selected after clicking on another
(in
> > this case a child)?
> >
> >
>
>
Re: Click on child, how to select parent instead [message #174634 is a reply to message #174619] Thu, 31 March 2005 01:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bashar.infromatik.uni-bonn.de

"Craig Fransen" <Craig@OfficeExtend.com> wrote in message
news:d2fi66$qlk$1@news.eclipse.org...
> Or, apparently, per your hints, override isSelectable() to return false.
Probably this approach is better

>
> "Md. Abul Bashar" <bashar@infromatik.uni-bonn.de> wrote in message
> news:d2fgdb$om0$1@news.eclipse.org...
>>
>> Override the child edit part's ".getTargetEditPart(Request request)"
> method
>> to return the parent edit part in response to a "SelectionRequest". @see
>> EditPart#getParent(), EditPart#getTargetEditPart(Request request).
>>
>>
>> "Craig Fransen" <Craig@OfficeExtend.com> wrote in message
>> news:d2f9e2$gcb$1@news.eclipse.org...
>> > I'm implementing a tabset for use in a screen designer. I have a
>> > tabset
>> > editpart that contains tabpage editparts. On the figure side, the
> tabset
>> > figure contains tabpage figures (one visible at a time) which consume
> the
>> > tabset's entire client area. When I click on the tabpage I would like
>> > instead to select the tabset parent. But if I click on some other
> figure
>> > contained in the tabpage, I would like to select that child as normal.
>> >
>> > I think this is an easy one, but I've spent too much time on it not to
>> > simply ask the question.
>> >
>> > How can I cause one editpart to be selected after clicking on another
> (in
>> > this case a child)?
>> >
>> >
>>
>>
>
>
Re: Click on child, how to select parent instead [message #174682 is a reply to message #174634] Thu, 31 March 2005 12:59 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Md. Abul Bashar wrote:
> "Craig Fransen" <Craig@OfficeExtend.com> wrote in message
> news:d2fi66$qlk$1@news.eclipse.org...
>
>>Or, apparently, per your hints, override isSelectable() to return false.
>
> Probably this approach is better
>
>

probably they are both being done.


CL
Previous Topic:Add components to the Outline Page
Next Topic:Steps to create BendPoint Connection
Goto Forum:
  


Current Time: Thu Apr 25 22:54:10 GMT 2024

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

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

Back to the top