Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Alternate target feedback for TreeContainerEditPolicy
Alternate target feedback for TreeContainerEditPolicy [message #242166] Thu, 03 April 2008 12:55 Go to next message
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] Wed, 09 April 2008 21:25 Go to previous message
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
>
Previous Topic:start connection on mouse click
Next Topic:[Announce] GEF 3.4.0 I200804081830 is available
Goto Forum:
  


Current Time: Mon Jul 28 12:26:41 EDT 2014

Powered by FUDForum. Page generated in 0.01353 seconds