Click on child, how to select parent instead [message #174589] |
Wed, 30 March 2005 22:30 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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)?
>> >
>> >
>>
>>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03480 seconds