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.
The Close Project action is no longer enabled for child nodes of the root project, this behaviour has changed since 6.5. 1. Open any project (only tested on Java projects). 2. Select "Source Packages" - File > Close not available 3. Select root project node - close is available. It also doesn't just have to be the selected node, needs to be the focussed node: 1. Open a source file 2. Select the root node of the project 3. Confirm File > Close is available, but don't action it. 4. Move focus back to the source file in the editor 5. File > Close is no longer available. I only download the basic IDE so not sure if this is the same for project types other than java based ones.
I guess the Close was removed intentionally. Jano can you confirm it, please?
can't reproduce Product Version: NetBeans IDE Dev (Build 090401) Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Okay, just found this very intriguing (confirmed with 200904051400). 1. Start with a clean user settings folder (delete ~/.netbeans/dev) 2. Open a single project (I chose versioning.system.cvss from NetBeans) 3. You will find the symptoms described as above Now for the fun part. 1. Open another project (I chose antlr from NetBeans) 2. Wait for project scanning to complete 3. Symptoms now become intermittent and sort of look like they're working. Very strange.
Created attachment 79545 [details] Image showing disabled "Close Project" actionwhile file open (focussed).
I've attached a screenshot showing how this looks, you can see that the editor window has focus, as does a child node of the CVS project, yet the `Close Project' action is still grayed out. It only seems to come active again after randomly clicking about.
There must be something more involved. As you can see IDE title and File -> Close action shows different context ie. different opened project which is weird as CVS project is only opened project. I will attach my screenshot when I opened CVS project and also some properties file from CVS project. So please when you start from scratch look at IDE main window title when is it changed.
BTW from you screenshot it is not clear if you have ONLY CVS project opened or if there is any other project opened.
Please also provide exact info what OS, NB build, JDK you use.
Created attachment 79805 [details] IDE main window screenshot with 1 project opened and File -> Close Project
I use my own build from core-main repo: Product Version = NetBeans IDE Dev (Build 090409) Operating System = Linux version 2.6.24-24-generic running on i386 Java; VM; Vendor = 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_13-b03 Java Home = /usr/java/jdk1.6.0_13/jre System Locale; Encoding = en_US (nb); UTF-8
In provided screen-shot two projects were open from the NB Source (ANTLR and CVS). I've been testing with the basic build (45MB one). JDK 1.6.13, Windows Vista (SP1) and Windows XP (SP3) As mentioned, this is completely intermittent, it sometimes appears, sometimes doesn't. I've also noticed now that also the save menu item is not always enabled when an editor is focussed, will attach screenshot (current build full IDE 200904141401).
Created attachment 80200 [details] No Save menu appearing
I'm not able to reproduce the problem, brettryan could you test on NetBeans 6.8 M1, it should be out in two weeks. Thanks.
brettryan, any news? Thanks for any info.
@mkubec I'll give it a test tonight when I get home, though I'm now using OSX.
I've just tested with `(Build 200909151512)` on OSX and found that if you open a new project and then select another panel such as the welcome screen or the navigator the close option is not available. However if I have either the `projects' panel or a document open focussed from that project then the close option does become available. If this is desired behavior then close.
Yes, this is intended behavior, you need to have some project in context to be able to close it. If there is a project in context its name is in application window title.