This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 99894 - Double click on text fields in search dialog should work like double-click in code
Summary: Double click on text fields in search dialog should work like double-click in...
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Milutin Kristofic
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2007-04-03 22:56 UTC by headius
Modified: 2016-07-07 07:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
double-click on method should select only method (28.88 KB, image/png)
2007-04-03 22:56 UTC, headius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description headius 2007-04-03 22:56:00 UTC
If I have someobj.someMethod() in a search dialog like Ctrl-H search and
replace) it should be double-clickable like it would be if it were code.
Specifically, double-clicking on "someMethod" should only select "someMethod"
and not "someobj" or the period that joins them. See the attachment for an
example of double-clicking on the method name.
Comment 1 headius 2007-04-03 22:56:50 UTC
Created attachment 40378 [details]
double-click on method should select only method
Comment 2 Marian Petras 2007-04-04 12:23:59 UTC
This is questionable. Someone other could argue that double-click in a text
field should behave same in all text fields. Do you know of any other text field
in NetBeans where double-click does not select all text?
Comment 3 Marian Petras 2007-04-04 12:26:03 UTC
I just noticed that you are talking about the Find dialog in the editor -
reassigned to component "editor".
Comment 4 headius 2007-04-04 22:23:32 UTC
The problem is that it isn't consistent with the way a coder might expect text
to highlight. It suffers from a problem a lot of text fields have: what is a
word character?

In this case, if you have the code:

myObj.myMethod(myArgs)

and double-click on myMethod, all of "myObj.myMethod" get selected, but not
"(myArgs)". So it's not selecting all text right now anyway. If it's going to
try to apply magic to select on a per-word basis, words should also be delimited
by a period character, and only "myMethod" should highlight.
Comment 5 Vitezslav Stejskal 2007-04-04 23:11:01 UTC
I think the current behavior is the default behavior of Swing text fields (or
the one implemented by your look and feel). I know that some IDE's use enhanced
text fields for places where people are expected to write java code so that
entering java code in a text field feels pretty much the same as entering code
in the IDE's java editor. Anyway, one day Netbeans might have something like
this too.
Comment 6 Martin Balin 2016-07-07 07:28:31 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss