Community
Participate
Working Groups
I'm not sure if this is a new feature or a bug. I have the following code snippet (from WorkingSetDialog) and call code assist on fw and select fWorkingSet: fTree.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleCheckStateChange(event); fW } }); This results in: fTree.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleCheckStateChange(event); WorkingSetDialog.this.fWorkingSet } }); In previous version of Eclipse "fWorkingSet" was added instead of "WorkingSetDialog.this.fWorkingSet"
Build Id: 20011101
This is intentional. The old codeassist did not qualify such scenarii, and it could lead to unresolved ambiguities. We decided that when targeting something declared in an enclosing type, it would always qualify it, and not only if conflicting with something closer. Do you really dislike this behavior ? We could make it only qualify if necessary, but from a style stand point, I think the resulting code is more readable. Along the same line, it could also qualify implict field accesses (even if no ambiguities with other variables) but we thought this one could be left to some user decision. Maybe we should introduce an option to make this behavior configurable.
I would opt for an option. We will have to provide a preference page for code assist anyways.
I prefer to have an option. Normally I don't write ".This." if it is not needed.
*** This bug has been marked as a duplicate of 5884 ***