Bug 558564 - Mouse double-click on C * operator can fail to select it
Summary: Mouse double-click on C * operator can fail to select it
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 558565 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-12-22 10:25 EST by Chris Jordan CLA
Modified: 2019-12-30 17:09 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jordan CLA 2019-12-22 10:25:10 EST
This form says "Enter bug" and some might not call this a bug, but I can find no better option on Help Contribute to report this apparent design defect.

Despite Product and Version above, this product is Eclipse IDE for C/C++ Developers Version: 2018-12 (4.10.0)

Steps:

1) On C source line

 pig=vec3(.15,.15,.15)*2;

double-click centre of * https://i.imgur.com/BQb8w6S.png

Expected: * selected. I'm assuming (given lack of documentation) this from experience of the same operation in Windows standard controls and every Windows app I have tried.

Observed: I get a selection .15,.15,.15 - ending two chars away from the target point.

Note: This is not a duplicate of any other bug report made by me.
Comment 1 Jonah Graham CLA 2019-12-22 12:04:50 EST
The C/C++ Editor component of "Eclipse IDE for C/C++ Developers Version: 2018-12 (4.10.0)" is provided by "Eclipse CDT Version 9.6.0"
Comment 2 Jonah Graham CLA 2019-12-22 12:43:08 EST
I can reproduce this - sort of. Numerous editors have different behaviour in Eclipse. Java and C Editor behave the same (roughly as reported) - but plain text editor double-clocking the * does select the *.

Sadly I don't know where in the documentation this is documented. I do observe with the other programs (non-eclipse) on my machine that I do get a wide variety of behaviours when double-clicking on a non-identifier. 

As Bug 558508 Comment 17, this looks like a platform issue. But my guess is the only issue here is the missing documentation on double (and triple) click behaviour.
Comment 3 Chris Jordan CLA 2019-12-22 15:36:21 EST
> Sadly I don't know where in the documentation this is documented.

Where in the documentation would be be documented if it was? I've found no reference section that has this in scope.

> As Bug 558508 Comment 17, this looks like a platform issue.

What's a "plaform" here?

> But my guess is the only issue here is the missing documentation on double (and triple) click behaviour.

One test of that is how likely is it that documentation would say e.g. "Despite all reasonable expectations, double-clicking on a character does not necessarily select it. This is WAD."

I'd say unlikely.

I see nothing to recommend the observed failure to select the target character. Can you?
Comment 4 Jonah Graham CLA 2019-12-22 16:13:17 EST
(In reply to Chris Jordan from comment #3)
> > As Bug 558508 Comment 17, this looks like a platform issue.
> 
> What's a "plaform" here?

https://projects.eclipse.org/projects/eclipse.platform

https://www.techopedia.com/definition/24196/eclipse-platform has a nice definition too.
Comment 5 Jonah Graham CLA 2019-12-22 16:20:02 EST
(In reply to Chris Jordan from comment #3)
> One test of that is how likely is it that documentation would say e.g.
> "Despite all reasonable expectations, double-clicking on a character does
> not necessarily select it. This is WAD."
> 
> I'd say unlikely.
> 
> I see nothing to recommend the observed failure to select the target
> character. Can you?

I would document roughly like this, language refinements welcome, "double-clicking selects the identifier being clicked if there is one at the position" and "triple clicking selects the whole line of code". WDYT?
Comment 6 Jonah Graham CLA 2019-12-30 15:23:02 EST
*** Bug 558565 has been marked as a duplicate of this bug. ***
Comment 7 Chris Jordan CLA 2019-12-30 17:06:04 EST
> "double-clicking selects the identifier being clicked if there is one at the position"

If that's the best that can be said, then I suggest the test result if Fail.

Note that clicking on a NON-dentifier can select an identifier e.g. on the * in:

 a = b*c;
Comment 8 Chris Jordan CLA 2019-12-30 17:09:03 EST
> If that's the best that can be said, then I suggest the test result if Fail.

Correction: If that's the best that can be said, then I suggest the test result is Fail.