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 26950 - Personal Settings lost when closing projects
Summary: Personal Settings lost when closing projects
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-02 10:05 UTC by Vitezslav Stejskal
Modified: 2004-04-19 16:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NullPointerException stacktrace (837 bytes, text/plain)
2003-04-17 09:59 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitezslav Stejskal 2002-09-02 10:05:45 UTC
Tor's email:

With the first option, you're forcing users to
keep all the projects they're working on open,
forever, unless they want to lose their settings
(all run parameters such as arguments, working
directories, etc., their reference point maps,
...)   That doesn't seem to scale well.
I can easily manage somebody having 30 projects.
Not only will this slow down the IDE (Project.find
has to do a lot more work), it's less convenient
for the user (having to scroll and search in the
explorer).
I think it's nice that NetBeans lets you have
multiple projects open, but it's bad if it
-forces- you to do it.

As a user I was quite surprised to have my
settings lost when I closed the project, so if we
keep this behavior, we should definitely provide a
warning dialog.


The second option (moving the settings to the
.project folder) is bad too because:
- it removes the possibility to share a project
file in a central location (unless you rename the
personal settings to be on a  per-user basis, e.g.
/tmp would contain MyProject/,
 MyProject-jan, MyProject-vita, MyProject-svata,
or perhaps
 MyProject/Personal/{jan,vita,svata}.
- it removes the possibility to have private (not
just personal) settings that others can't see for
a shared project. For example, it's possible that
some module may write password information into
the personal settings; if these are moved off to
some public location that wouldn't be good.
- it removes the possibility to use projects in
read-only areas. For example, the Forte Developer
CD came bundled with a bunch of benchmarking and
example projects on the CD. people could open
these projects and run them; but you can't persist
my settings on the CD.

Having said that - I think alternative 2 is MUCH
better than alternative 1.

But is there some reason you discarded alternative 3:
- Keep personal information in the user directory,
but not under   system/Projects/Open ?
Specific proposal:
    When you close a project, let's say
System/Projects/Open/Foo, move the personal
settings part to   system/Projects/Closed/Foo/Personal
    Then set an attribute on the Foo folder above,
prj.publiclocation which points to the .project file.
    Then when you open a project, yousee if a
corresponding
    personal part is found in system/Projects/Closed.

    It's not required in 4.0 to have some way of
cleaning out "unused" closed personal settings
(e.g. projects which you've created and deleted
but still have the personal settings part for.) 
We could occasionally check the Closed folders,
look up the publiclocation attribute for each
project and check if the real project file exists
- and if not, offer to wipe out the personal settings.
Comment 1 Vitezslav Stejskal 2003-02-06 14:33:42 UTC
The #3 alternative sounds good. Raising prio we should fix it soon as
it prevents projects from being used for real work.
Comment 2 pzajac 2003-04-17 09:59:03 UTC
Created attachment 9983 [details]
NullPointerException stacktrace
Comment 3 Vitezslav Stejskal 2003-11-24 13:59:54 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.
Comment 4 Jan Becicka 2003-11-25 13:45:49 UTC
Marking issue as VERIFIED --->
Comment 5 Jan Becicka 2003-11-25 13:50:44 UTC
---> CLOSED