Community
Participate
Working Groups
Build Identifier: M20100909-0800 Double clicking a word in editor usually selects that word, but when this word is inside a comment (Java or C++) some additional characters may become selected. Reproducible: Always Steps to Reproduce: 1. Open a Java or C++ editor 2. Type or copy-paste following text there: whatever = object.method(); // somethingElse = anotherObject.method(); 3. Double-click "object" word. Notice that selection ends before dot. 4. Double-click "anotherObject" word. Notice that in this case selection ends before opening parenthesis.
The same will happen if you put the colon (one or more) instead of the dot before "method()", but will not happen if you put a comma there. In all scenarios selection should end at word break (i.e. how it works outside of comment).
The same strange behavior is observed in the regular text editor: the "." symbol is ignored. Even more strange: 1. Open standard text editor 2. Type or copy-paste following text there: abc.123 abc.cde 3. Double-click "abc" on the first line. Notice that the "abc" is selected. 4. Double-click "abc" on the second line. Notice that whole line "abc.cde" is selected. Also notice that spell checker marks "abc" on the first line as an error (underlines with red), while ignores it on the second line. Even more. While I type this via mylin editor, I see that these two lines are displayed in different font. It seems to me that the editor recognize the second line to be a "code" or something like this. The behavior seem to be unclear and unexpected..
Issues and concerns with Eclipse's text editor goes to Platform/Text. Please see bug 285957.
*** This bug has been marked as a duplicate of bug 285957 ***