Skip to main content


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 16:55 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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: Tue Apr 16 07:17:49 GMT 2024

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

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

Back to the top