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 44596

Summary: Selection of newly created files in Projects/Files tabs should not override selection of new file in editor
Product: projects Reporter: Jesse Glick <jglick>
Component: Generic Projects UIAssignee: Jiri Rechtacek <jrechtacek>
Status: CLOSED FIXED    
Severity: blocker CC: dsimonek, jrojcek
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Jesse Glick 2004-06-08 19:17:22 UTC
040608, 1.5.0 b54, GTK. I have my Projects, Files,
and Favorites tabs slid out as sliding windows.
When I create a new file, it is opened in the
editor and also selected in one of these tabs.
However it seems that the tab is slid in, i.e.
gets focus. This should not happen; the editor
should always get the focus, and any sliding
windows should be correspondingly slid out.

I am not sure exactly what is wrong; perhaps the
ordering of selection events needs to be changed.
Might require some fixes in the window system.
Comment 1 Jiri Rechtacek 2004-06-11 09:56:51 UTC
It needs a change of WindowSystem side, there is no way how to check
the state of Explorer mode if it's autohidden or not. AFAIK no API
change this favor planned for promoD.
Comment 2 Jesse Glick 2004-06-14 17:18:08 UTC
Note that I'm not requesting different behavior depending on autohide
status, really - just requesting that focus be sent to the editor
window, not any of the Explorer windows, when the new file is created.
If autohide windows are implemented properly, this should have the
corollary result that they are hidden because the editor gets
focussed, if those windows are in fact set to autohide mode.
Comment 3 Jesse Glick 2004-06-23 00:33:23 UTC
Happens even without sliding windows. Please reevaluate.

Jano consider whether this should be P4 or P3.
Comment 4 jrojcek 2004-06-23 09:20:42 UTC
I think this is P3.

The correct behavior is that the focus only moves into the editor. If the user invokes New 
File wizard the currently active window stays active, and after finishing the wizard the new 
editor tab is activated. The Projects window should not be activated during this operation 
at all.
Comment 5 Jiri Rechtacek 2004-06-23 15:30:47 UTC
Changed by recommendation, the ProjectTab (nor FilesTab) are not
focused, only the path to file is selected and the new file in editor
area is activated.

Checking in src/org/netbeans/modules/project/ui/;
new revision: 1.10; previous revision: 1.9
Checking in src/org/netbeans/modules/project/ui/;
new revision: 1.6; previous revision: 1.5
Comment 6 Marian Mirilovic 2005-12-20 15:47:15 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.