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 146808 - [67cat] Wrong scope for "Find" if 2 editor panes open
Summary: [67cat] Wrong scope for "Find" if 2 editor panes open
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-10 17:08 UTC by ulfzibis
Modified: 2009-05-15 18:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
How to move Tab (23.59 KB, image/jpeg)
2009-05-13 14:00 UTC, ulfzibis
Details
Result of Move Tab (18.74 KB, image/jpeg)
2009-05-13 18:13 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2008-09-10 17:08:12 UTC
[ BUILD # : 200809031401 ]
[ JDK VERSION : 1.6.0_07 ]

- having several files open in editor pane
- move 1 tab to bottom of existing editor pane
--> result: editor window splited to 2 panes.
- mouse-click in bottom pane
- Ctrl-F
--> find toolbar opens in bottom pane
- mouse-click in top pane
- Ctrl-F
--> find toolbar _remains_ in bottom pane
Comment 1 Miloslav Metelka 2008-09-18 13:30:15 UTC
In this case if there's an opened searchbar already then it's only focused. IMHO it's not causing any significant
problems or does it?
Comment 2 ulfzibis 2008-09-18 15:13:01 UTC
> ... any significant problems ...?
Yes, I can't do a find action in the file, which is in the not focused pane.
Also repetitive find F3 doesn't work for the file I want.
Comment 3 David Strupl 2009-03-31 15:53:49 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 4 ulfzibis 2009-04-15 12:29:14 UTC
- It's much annoying, if Find searches in wrong pane.
- Advantage of duplicated views to same document decreases significantly.
Comment 5 Sergey Petrov 2009-05-13 10:53:29 UTC
If I drag a tab to a bottom of existed editor I have tab on top and tab below, I can't get editor splitted into two
panes. How I can split the editor?
Comment 6 ulfzibis 2009-05-13 13:59:06 UTC
Move tab in 1st or 3rd third of existing pane and drop. It works for me. See attachment.
Comment 7 ulfzibis 2009-05-13 14:00:18 UTC
Created attachment 82052 [details]
How to move Tab
Comment 8 Sergey Petrov 2009-05-13 15:34:10 UTC
Can you attach result (i.e. editor window splited to 2 panes)?

also I have an issue even with two tabs in main area and dropped next to navigator.
if I press ctrl-f in first, and then click in second only search bar is hidden but focus remains in first editor, I have
to click second time to move focus, otherwise next ctrl-f will show search bar in first editor. Is it your case also?
Comment 9 ulfzibis 2009-05-13 18:13:23 UTC
Created attachment 82073 [details]
Result of Move Tab
Comment 10 ulfzibis 2009-05-13 18:39:40 UTC
I'm referring to "click areas", which should affect focus, as numbered in my 2nd attachment.

What do you mean by "and then click in second"?
If you only have 2 tabs in main editor area, I guess, you mean "click area" 1, as 2 and 3 would result, staying in same
document.
I have tried your case, but I can't reproduce it.

... but I have another 2 cases:
a)
- having focus in 2nd editor area in 1st tab
- Ctrl-F
--> opens search bar in 2nd editor area
- click in "click area" 2 of 1st editor area
--> search bar closes, but focus remains in 2nd editor area
- click 2nd-ly in "click area" 2 of 1st editor area
--> nothing changes
... and so on
b)
- having focus in 2nd editor area in 1st tab
- Ctrl-F
--> opens search bar in 2nd editor area
- click in "click area" 3 of 1st editor area
--> search bar closes, but focus remains in 2nd editor area
- click 2nd-ly in "click area" 3 of 1st editor area
--> focus now in 1st editor area
c)
- having focus in 2nd editor area in 1st tab
- Ctrl-F
--> opens search bar in 2nd editor area
- click in "click area" 2 of 1st editor area
--> search bar closes, but focus remains in 2nd editor area
- click 2nd-ly in "click area" 3 of 1st editor area
--> focus now in 1st editor area

My comments:
a) this is really an error
b)+c) focus should jump to 1st editor area immediately, not after 2 clicks.

Comment 11 Sergey Petrov 2009-05-14 08:19:45 UTC
thanks.
initially I got "splited to 2 panes." as something similar to two diff panes.
I mean clicks in editor area in my description, so it seems I got what is wrong, after search bar is closed it set focus
to editor where it was opened, I really see cursor first appears in second tab(i.e. editor area of second tab) but right
after search tab disappear cursor jumps back to first tab.
Comment 12 Sergey Petrov 2009-05-14 12:21:17 UTC
http://hg.netbeans.org/jet-main/rev/8d843af758d3 removed extra set focus
Comment 13 Quality Engineering 2009-05-15 18:56:34 UTC
Integrated into 'main-golden', will be available in build *200905151401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8d843af758d3
User: sergeyp@netbeans.org
Log: fix #146808 - removed set focus to text fiels when serach bar lost focus, text editor have focus without this code in proper cases.