Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 229245 - [CommonNavigator] Project Explorer and "Link with editor" causes continuous re-selecting of method name when changing signature
Summary: [CommonNavigator] Project Explorer and "Link with editor" causes continuous r...
Status: RESOLVED DUPLICATE of bug 237830
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael D. Elder CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-29 04:42 EDT by Thomas Oesterle CLA
Modified: 2008-06-20 09:26 EDT (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 Thomas Oesterle CLA 2008-04-29 04:42:05 EDT
Setup:

- started Eclipse 3.3.2 with completely fresh workspace
- created new java project
- created a new class in any package
- using project explorer and enabling "link with editor"
- expanding the class's members in the project explorer
- opened the .java file for the new class in standard java editor in eclipse
- creating a new method, i.e. typing in "public void test"

--> beginning from here, eclipse will ALWAYS mark the method name of the new method whenever i do anything that would result in a change of the method's signature. It is irrelevant wether or not i pause shortly while typing or not.

The problem with this is that because of eclipse doing this WHILE i am trying to modify the method, the marking of the method while i'm typing will result in me deleting the method name with anything i was just typing in. The reason seems to be that the project explorer updates the tree view with the method's new siganture and then selects the (modified) method in the tree view. When this happens, the method's name is marked in the java editor, thus causing the problem.

This behaviour is specific to the project explorer (package explorer will update and select the method in the tree view, but will NOT mark the method name in the java editor), which i need to use because i need to be able to open and edit uml2 models in eclipse. So anytime i forget switching back to the package explorer, this problem can hit me.

It took me several weeks just to identify the problem being caused by the project explorer with enabled "link to editor" and expanded class members, until then it nearly drove me crazy (again and again deleting method names while just wanting to change their siganture, AND not knowing why it happens ;-) ). I also cannot see how the described behaviour could in any way be a desired one - this just seems like a bug to me, that's why i'm reporting it here.

I hope my descriptions were sufficient,

thx Thomas
Comment 1 Dani Megert CLA 2008-06-20 09:26:43 EDT

*** This bug has been marked as a duplicate of bug 237830 ***