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 257208 - Editor switches tabs voluntary when working with multiple editor panes
Summary: Editor switches tabs voluntary when working with multiple editor panes
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.2
Hardware: PC All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-18 13:01 UTC by andrey_p
Modified: 2016-01-15 14:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrey_p 2015-12-18 13:01:58 UTC
Setup:
0. there should be multiple (checked with 2) editor panes in Netbeans
1. multiple tab rows enabled (not sure this makes any difference)
2. multiple files are open, some in one pane, some in another
3. then drag a document tab from one pane to another
4. all the time the problem was observed Netbeans window was in maximized stated (full-screen for Mac OS)

The effect is that now it is impossible to switch to some of the documents: once these documents are selected with mouse-click on respective tab or a ctrl+tab combination is used to switch to document Netbeans does the following:
1. switches to desired document
2. immediately switches to some other arbitrary document
3. maybe continues to switch documents for a while
4. at some point it stops switching, the infinite switching was never observed

Please note that there is at least one document which can be switched to successfully

Moreover, once Netbeans is switched to non-maximized/non-fullscreen mode the problem disappears. However once maximized state is entered again it appears again. Even more, if you select one of "problematic" documents in non-maximized state and then enter maximized state NB will immediate start switching tabs. So looks like this has something to do with tabs resize/refresh code

The problem observed since long ago, at least since NB 8.0 but still reproduced (up to Netbeans 20151124). Problem was never seen on Java code/projects, all the time on C++ files/projects. However it's not proven that it's CND specific problem so feel free to retarget the bug at appropriate team

At least Linux and Mac OS versions exhibit the problem

Please also see screencast https://vimeo.com/149399042
Comment 1 Stanislav Aubrecht 2016-01-06 10:13:48 UTC
I'd look for excessive requestFocus() and requestFocusInWindow() calls. In most cases the focus ends up in quicksearch field and the video shows that the quicksearch field isn't visible.
Comment 2 soldatov 2016-01-15 13:14:33 UTC
I checked NetBeans 8.1 on MacOSX 10.11 (El Captain) and I can't reproduce bug. On Linux in full-screen mode I can't use Ctrl-Tab hot key.
Comment 3 andrey_p 2016-01-15 14:04:23 UTC
The problem should have been reproducible regardless of the way to switch the tabs. So you can try mouse clicking on Linux. BTW, my Mac OS version is 10.10