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.
Summary: | Newly opened file not focused | ||
---|---|---|---|
Product: | editor | Reporter: | Jesse Glick <jglick> |
Component: | -- Other -- | Assignee: | Jaroslav Tulach <jtulach> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | dbell, gtzabari, issues, jtulach, mmetelka, muellermi, tkellerer |
Priority: | P1 | Keywords: | REGRESSION |
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 202656 | ||
Bug Blocks: | 200966, 201808 |
Description
Jesse Glick
2011-09-08 14:08:18 UTC
Not really sure what category this is, or if it is in fact for openide.text. Please, investigate it. Most probably due to this issue in C++ we have lost all HL at all. After reopening file HL does not appear. EditorRegistry contains extra elements. see issue #201808 Apparently EditorRegistry.FocusL.focusGained() does not get called in recent builds while it gets called properly in older builds. CloneableEditor.requestFocusInWindow() gets called in both builds by MultiViewPeer.requestFocusInWindow() and that one by MultiViewCloneableTopComponent.requestFocusInWindow() CE.requestFocusInWindow() looks like this: public boolean requestFocusInWindow() { super.requestFocusInWindow(); if (pane != null) { if ((customComponent != null) && !SwingUtilities.isDescendingFrom(pane, customComponent)) { return customComponent.requestFocusInWindow(); } else { return pane.requestFocusInWindow(); } } return false; } Problem is that when the method gets called the pane.getParent() == null in new builds while in older builds the parent is non-null. Therefore the method won't work and the focus is not transferred. Yardo, since you've done some changes in multiview recently, don't you know what could be wrong? Thanks. Blocking a P1. I am guessing caused by 5906c9488e61. (In reply to comment #4) > I am guessing caused by 5906c9488e61. Confirmed by backing out the core.multiview part of that changeset and noting that the editor is focused normally as a result. So I guess someone should backout the change and reopen bug #200966. It is more my time zone, but as I am going on vacation soon I do not want to make "big" changes. jtulach has poor connectivity right now so backing out on his behalf: core-main #b31edd9ddcb9 Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/b31edd9ddcb9 User: Jesse Glick <jglick@netbeans.org> Log: Backed out changeset 5906c9488e61 Hotfix for #201823. *** Bug 201916 has been marked as a duplicate of this bug. *** re-introduced by fix for issue #200966 http://hg.netbeans.org/cnd-main/rev/bb3c22be8a00 (In reply to comment #9) > re-introduced by fix for issue #200966 > http://hg.netbeans.org/cnd-main/rev/bb3c22be8a00 ...and apparently backed out: a8b2c5f886fb. does not repeat after backout, closing again *** Bug 202684 has been marked as a duplicate of this bug. *** *** Bug 202811 has been marked as a duplicate of this bug. *** *** Bug 202958 has been marked as a duplicate of this bug. *** verified Product Version: NetBeans IDE 7.1 RC1 (Build 201111232200) Java: 1.7.0_02; Java HotSpot(TM) 64-Bit Server VM 22.0-b10 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) User directory: C:\Users\jprox\.netbeans\7.1rc1 Cache directory: C:\Users\jprox\.netbeans\7.1rc1\var\cache |