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 114421

Summary: Editor "window" command should be localized to current window
Product: platform Reporter: mclaassen <mclaassen>
Component: Window SystemAssignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description mclaassen 2007-08-31 21:31:31 UTC
I love the way that NB 6 allow for multiple editor windows (as in top level frames) that each have their own editor tabs
in them.  This is fantastic, however I don't think they work as people would expect.  I am using the build from
2007080300000.

First, if I right click on the tab bar and do "Close All Documents", I would not expect documents open in another editor
window to close, which they do now.

Next, if I am in an java file and I ctrl-click to open another source file, I would expect that it would open it in the
same window I am working in, not only in the main NB window.  At first when I did this, I thought nothing happened.

Third, it would be awesome if I could decide where to open a file.  Now, if I open a file from the Projects tab, it
always opens in the main NB editor.  In fact, even if have another window open and I drag files from the projects tab to
it, they will still open only in the main NB window.

The window dialog (opened from shift-F4) should probably be more multi-window savvy as well.
Comment 1 mclaassen 2007-08-31 21:54:30 UTC
I was talking to a colleague here and I realized I was somewhat in error.

If I ctrl-click a file, it will open the document in the correct window unless it is already opened.  This is a subtle
thing, and I can understand why would made the choice you did.  I know that in NB 5.5.1, you could have to views open to
the same document.  I think I would expect / prefer that it would open it again in the window I am currently focused on,
even if it is open in another window.

I guess "Close all documents" in an undocked editor window would be just like closing the frame.  However, the reason I
mentioned it was because now there is now way to easily close all the document in the main NB window.  It is possible
from the "Documents" dialog, but as I mentioned earlier, there is no way to distinguish which documents are in which
window in that dialog.

As an aside: I have been unable to dock other items (like the navigator) into an external editor.  As a standalone
window I can, but not into an open editor.  Is this possible?  If so, then the "Close all documents" would not be a
superfluous action in an external editor window.

Comment 2 Peter Pis 2007-09-11 16:18:01 UTC
Reassigning to "core".