Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 255060 - eclipse selects method name while I'm typing
Summary: eclipse selects method name while I'm typing
Status: RESOLVED DUPLICATE of bug 237830
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 10:37 EST by paul tillotson CLA
Modified: 2008-11-13 09:31 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description paul tillotson CLA 2008-11-12 10:37:54 EST
Build ID: M20080911-1700 

Steps To Reproduce:
This happens often for me, but doesn't usually happen immediately after launching eclipse.  When it does happen it's usually in a class that already has many methods, and I'm typing in the middle of the class (i.e., not the first or last method).


More information:
While creating new methods in java classes, if I stop typing for about 500 ms, eclipse will automatically select the method name.  At this point I need to deselect the text before continuing to type, otherwise my next keystroke will cause the the selected text (the method name) to be overwritten.

Other people seem to have encountered this:

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=12&t=006130

http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg25722.html
Comment 1 Dani Megert CLA 2008-11-13 03:00:54 EST
I suspect you see bug 237830.
Please try 3.5 M3 or newer and if this doesn't fix your case please reopen with more detailed steps to reproduce.

*** This bug has been marked as a duplicate of bug 237830 ***
Comment 2 paul tillotson CLA 2008-11-13 09:31:48 EST
Daniel:

I agree that it's the same bug; the steps in that case allowed me to reliably reproduce it, which I could not do before.  The only exception is that it is not necessary to use the Refactor option to get this to happen.  I can reproduce it like this:

1. Load an existing project with java files
2. Open the project explorer pane and make sure the "link with editor" option is enabled.
3. Expand your project in the navigator until you find a java file, and double-click on a method name.  This opens the file in the java source code editor, and also selects the method name.
4. Click into the java edit window and try to change the method name.  Every time you type a character and wait ~ 500 ms, eclipse re-selects the same method name.

I will try the newer version of eclipse.  Thanks for your help.

For everyone reading this, a workaround is to disable the "link with editor" option.  (Look at the header of the "project explorer" window for a little square icon with two yellow arrows pointing left and right.  Unselect this.)