Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » java editor - pause typing causes current word to be selected - continue then overtypes
java editor - pause typing causes current word to be selected - continue then overtypes [message #249923] Sun, 02 December 2007 02:38 Go to next message
Eclipse UserFriend
Originally posted by: pmac.nospam.tensilica.nospam.com

i have the europa 3.3.1 J2EE bundle on winXP and am editing java classes in
a "dynamic web project".

there is a really ugly editor behaviour when typing in a new method
declaration caused by something auto-selecting the word that is being typed
in when you pause. Type in the following partial method decl and then pause
for a second or so:

public int foo

as you pause, the item "foo" appears in the outline, and the characters
"foo" in the editor become selected. Then continue entering the rest of the
method decl

bar()

(i.e. you wanted public int foobarr())

because something autoselected "foo" those chars are replaced as you
continue typing. Massively frustrating.

Now ... i don't see this in the other eclipse331 SDK installation i have, so
it's not a fundamental of the editor.

It appears to be somewhat related to the outline view being "linked" to the
editor, but that is enabled in both installations and only the EE bundle has
the bad behaviour. Switching off linking "improves" the behaviour, but not
totally (and linking is actually useful). A race condition maybe?

Anyone else come across this? Any suggestions on how to improve the
behaviour? I didn't find any likely preferences. I also didn't find anything
obvious in bugzilla

TIA

PMac
Re: java editor - pause typing causes current word to be selected - continue then overtypes [message #249942 is a reply to message #249923] Sun, 02 December 2007 07:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

PMac,

It sounds likely to be related to something in the web tools project in
which case the JDT folks likely won't know anything about it. I've
added the WTP newsgroup to my reply.


Pete MacLiesh wrote:
> i have the europa 3.3.1 J2EE bundle on winXP and am editing java classes in
> a "dynamic web project".
>
> there is a really ugly editor behaviour when typing in a new method
> declaration caused by something auto-selecting the word that is being typed
> in when you pause. Type in the following partial method decl and then pause
> for a second or so:
>
> public int foo
>
> as you pause, the item "foo" appears in the outline, and the characters
> "foo" in the editor become selected. Then continue entering the rest of the
> method decl
>
> bar()
>
> (i.e. you wanted public int foobarr())
>
> because something autoselected "foo" those chars are replaced as you
> continue typing. Massively frustrating.
>
> Now ... i don't see this in the other eclipse331 SDK installation i have, so
> it's not a fundamental of the editor.
>
> It appears to be somewhat related to the outline view being "linked" to the
> editor, but that is enabled in both installations and only the EE bundle has
> the bad behaviour. Switching off linking "improves" the behaviour, but not
> totally (and linking is actually useful). A race condition maybe?
>
> Anyone else come across this? Any suggestions on how to improve the
> behaviour? I didn't find any likely preferences. I also didn't find anything
> obvious in bugzilla
>
> TIA
>
> PMac
>
>
>
Re: java editor - pause typing causes current word to be selected - continue then overtypes [message #249958 is a reply to message #249923] Mon, 03 December 2007 10:04 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Pete MacLiesh wrote:
> i have the europa 3.3.1 J2EE bundle on winXP and am editing java classes in
> a "dynamic web project".
>
> there is a really ugly editor behaviour when typing in a new method
> declaration caused by something auto-selecting the word that is being typed
> in when you pause. Type in the following partial method decl and then pause
> for a second or so:
>
> public int foo
>
> as you pause, the item "foo" appears in the outline, and the characters
> "foo" in the editor become selected.

This is just a shot in the dark, but...
Do you happen to have the preference General > Select on hover enabled?
Is it possible that the mouse pointer is being moved over the outline
element (which, if that preference is enabled, would cause it to be
selected)?

Obviously what you're seeing is not intuituve and not intended (unless
there is something else you've left out of the scenario you describe. If
you can derive a reproducible test case, a Bugzilla would be in order.

Hope this helps,
Eric
Previous Topic:Junit Classpath
Next Topic:Way to enabe JDK1.4 assertions globally in eclipse exists?
Goto Forum:
  


Current Time: Wed Apr 16 13:23:12 EDT 2025

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

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

Back to the top