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 161988 - [67cat] Close project not enabled for anything other than root node.
Summary: [67cat] Close project not enabled for anything other than root node.
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2009-04-05 18:14 UTC by brettryan
Modified: 2009-09-22 09:50 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Image showing disabled "Close Project" actionwhile file open (focussed). (131.81 KB, image/jpeg)
2009-04-06 16:42 UTC, brettryan
Details
IDE main window screenshot with 1 project opened and File -> Close Project (110.56 KB, image/png)
2009-04-09 11:28 UTC, mslama
Details
No Save menu appearing (431.57 KB, image/jpeg)
2009-04-15 22:27 UTC, brettryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2009-04-05 18:14:36 UTC
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.
Comment 1 Jiri Prox 2009-04-06 10:55:04 UTC
I guess the Close was removed intentionally.
Jano can you confirm it, please?
Comment 2 Stanislav Aubrecht 2009-04-06 12:51:37 UTC
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)
Comment 3 brettryan 2009-04-06 16:38:25 UTC
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.

Comment 4 brettryan 2009-04-06 16:42:28 UTC
Created attachment 79545 [details]
Image showing disabled "Close Project" actionwhile file open (focussed).
Comment 5 brettryan 2009-04-06 16:44:16 UTC
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.
Comment 6 mslama 2009-04-09 11:23:07 UTC
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.
Comment 7 mslama 2009-04-09 11:25:29 UTC
BTW from you screenshot it is not clear if you have ONLY CVS project opened or if there is any other project opened.
Comment 8 mslama 2009-04-09 11:27:04 UTC
Please also provide exact info what OS, NB build, JDK you use.
Comment 9 mslama 2009-04-09 11:28:51 UTC
Created attachment 79805 [details]
IDE main window screenshot with 1 project opened and File -> Close Project
Comment 10 mslama 2009-04-09 11:29:47 UTC
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
Comment 11 brettryan 2009-04-15 10:21:32 UTC
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).

Comment 12 brettryan 2009-04-15 22:27:38 UTC
Created attachment 80200 [details]
No Save menu appearing
Comment 13 Milan Kubec 2009-07-24 13:44:58 UTC
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.
Comment 14 Milan Kubec 2009-09-11 09:29:07 UTC
brettryan, any news? Thanks for any info.
Comment 15 brettryan 2009-09-11 10:13:25 UTC
@mkubec

I'll give it a test tonight when I get home, though I'm now using OSX.
Comment 16 Milan Kubec 2009-09-21 14:56:30 UTC
brettryan, any news? Thanks for any info.
Comment 17 brettryan 2009-09-21 20:29:55 UTC
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.
Comment 18 Milan Kubec 2009-09-22 09:50:06 UTC
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.