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.
Upon switching SunStudio/dbxgui code to NB6.0 it was noticed that the symptoms described in 30979 are back. Specifically as you type step or next inside the dbx console the editor grabs focus. We use Line.show(Line.SHOW_SHOW) and SHOW_SHOW specifically shouldn't cause focus to move to editor. 30979 was dominated by discussions of focus-follows-mouse but that is not an issue in this case because in SunStudio the default for term is click-to-type (although I have my motif window manager set to focus-follows-mouse.) Another difference from 30979 is that the focus grabbing is more aggressive and at the X-window level. For example, I was debugging NB with dbx (yes, dbx can debug java) in a separate window and when the NB editor grabbed the focus my separate dbx window lost it's! This is with JDK1.5.0_12 on solaris9-sparc. 5.5.1-based SunStudio with the exact same setup doesn't exhibit this problem.
Passing to Marek who knew 30979 well, thanks Marek. Also ccing editor guys, as it seems that impl of Line.show(Line.SHOW_SHOW) changed in some way.
Please send me separately pointer where can I get SunStudio build (new and old one so that I can compare behavior and identify responsible change. Thanks.
There were some changes in openide/text to add support for Line.SHOW_REUSE and SHOW_REUSE_NEW.
org.openide.text.EditorSupportLineSet$SupportLine.show(EditorSupportLineSet.java:93) is resposible for activating editor when Line.show(Line.SHOW_SHOW) is called. Code resposible for it is: 1.5 (jglick 04-Apr-07): if (kind != SHOW_TRY_SHOW) { 1.5 (jglick 04-Apr-07): editor.getComponent().requestActive(); 1.5 (jglick 04-Apr-07): }
No, it was actually broken by me in v1.4 (I called editor.getComponent().requestActive(); unconditionally). Jesse have slightly improved the situation, but forgot about SHOW_SHOW.
Fixed, please verify it works as expected for you. openide/text/src/org/openide/text/EditorSupportLineSet.java,v1.6
It works in the trunk version of Aug 30th. Thanks.