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 192899 - projects disappear when creating project group
Summary: projects disappear when creating project group
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2010-12-06 01:15 UTC by billshannon
Modified: 2010-12-09 06:16 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description billshannon 2010-12-06 01:15:53 UTC
NetBeans 7.0M2

I had about 10 projects open.  I created a new project group.
I told it that the new project group should hold a project and
all subprojects, and I chose the project.  It was one of the
projects that I already had open.

The new project group was created and it looks fine, but I can't
figure out how to get back to my original list of projects.  If I
select Project Group > (none), no projects are listed.

Ok, so maybe I need to reopen those projects.  I opened one project,
switched to my new project group, then switched back to "(none)" and
my opened project was gone.

Ok, so maybe I needed to create a named project group to hold my
other projects.  I did that and it seemed to work.

Meanwhile, one of the projects from my original list was building
and deploying, and it finally completed and started running while
I was doing all the above.  It's quite weird that NetBeans still
knew about that project even though it wasn't open anywhere at the
time.
Comment 1 Jesse Glick 2010-12-06 16:31:52 UTC
(In reply to comment #0)
> maybe I needed to create a named project group to hold my other projects.

Yes.

> It's quite weird that NetBeans still
> knew about that project even though it wasn't open anywhere at the time.

The list of open projects is just a convenience for what to show in the Projects tab. You can do most operations just as well on a closed project if you, say, have a file from it open.
Comment 2 billshannon 2010-12-06 21:27:03 UTC
Maybe it would be appropriate to add a warning when you create a new
project group if you're not in an existing project group - "All open
projects will be closed", or something like that?  Ditto when switching
to another project group with a project open in the "Project Group (none)"
view.
Comment 3 Jesse Glick 2010-12-06 21:38:26 UTC
(In reply to comment #2)
> Maybe it would be appropriate to add a warning when you create a new
> project group if you're not in an existing project group - "All open
> projects will be closed", or something like that?

Yes, that would make sense I think. Can be added pretty easily.

> Ditto when switching
> to another project group with a project open in the "Project Group (none)"
> view.

That is the same thing as not having a project group open.
Comment 4 Jesse Glick 2010-12-07 19:18:06 UTC
Adding warning: core-main #06092956385e
Comment 5 Quality Engineering 2010-12-09 06:16:05 UTC
Integrated into 'main-golden', will be available in build *201012090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/06092956385e
User: Jesse Glick <jglick@netbeans.org>
Log: #192899: projects disappear when creating project group