Alternate target feedback for TreeContainerEditPolicy [message #242166] |
Thu, 03 April 2008 16:55 |
Eclipse User |
|
|
|
Originally posted by: ejohnson.avaya.nospam.com
I have a user complaining about then insert behavior of
TreeContainerEditPolicy. The problem seems to be when inserting a new
child into a parent list, the parent is selected. For example:
***A*** (* is supposed to show highlighted)
- B
- C
------------------ <-- new insertion point
- D
The problem becomes when the parent is not visible in the window, then the
highlight action causes the tree item to be revealed which then scrolls
the window.
I would like to continue to show target feedback when users are adding new
children (or moving), but it seems that the key methods in
TreeContainerEditPolicy are either final or private preventing me from
overriding any behavior.
Aside from copying the implementation into my subclass, are there any
tricks I can leverage to prevent the highlighting of the parent item?
Thanks,
Erik
|
|
|
Re: Alternate target feedback for TreeContainerEditPolicy [message #242310 is a reply to message #242166] |
Thu, 10 April 2008 01:25 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
Open a bug, and submit a patch, if possible. 3.4 will be out soon. Until
then, you can override showTargetFeedback() and eraseTargetFeedback().
Pratik
"Erik Johnson" <ejohnson@avaya.nospam.com> wrote in message
news:cf4343c5ecca0622fe2a216be00f66da$1@www.eclipse.org...
>I have a user complaining about then insert behavior of
>TreeContainerEditPolicy. The problem seems to be when inserting a new
>child into a parent list, the parent is selected. For example:
>
> ***A*** (* is supposed to show highlighted)
> - B
> - C
> ------------------ <-- new insertion point
> - D
>
> The problem becomes when the parent is not visible in the window, then the
> highlight action causes the tree item to be revealed which then scrolls
> the window.
>
> I would like to continue to show target feedback when users are adding new
> children (or moving), but it seems that the key methods in
> TreeContainerEditPolicy are either final or private preventing me from
> overriding any behavior.
>
> Aside from copying the implementation into my subclass, are there any
> tricks I can leverage to prevent the highlighting of the parent item?
>
> Thanks,
> Erik
>
|
|
|
Powered by
FUDForum. Page generated in 0.03422 seconds