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 38552 - Replace ImportWizard with simple dialog
Summary: Replace ImportWizard with simple dialog
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 75084
  Show dependency tree
 
Reported: 2004-01-08 17:47 UTC by Jiri Rechtacek
Modified: 2008-12-22 23:47 UTC (History)
3 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Rechtacek 2004-01-08 17:47:39 UTC
The ImportWizard will be replaced by simple YES/NO
dialog. Code will automatically detect previous
version of IDE. If any the YES/NO dialog asks for
confirmation if import setting or not. If there is
no previous version IDE then the dialog won't be
showed.
A detailed specification will attached soon.
Comment 1 Jiri Rechtacek 2004-01-08 18:08:41 UTC
Integrated in main trunk.
Comment 2 _ ttran 2004-01-09 08:37:09 UTC
Draft spec:

when the IDE runs for the first time (detected by examining the
contents of the userdir)

1) it will check if ${user.home}/.netbeans/3.5 exists.  If so go to
step  (3)

2) otherwise check ${user.home}/.netbeans/3.4, if this dir doesn't
exist, skip all the following steps and start the IDE

3) ask the user if she wants to import settings from a previous
version.  "No, thanks" -> skip the rest, start the IDE

4) copy the approriate files from ${user.home}/.netbeans/3.5 or
${user.home}/.netbeans/3.4 to the new userdir and start the IDE

Things to consider:

- the list of old userdirs to check (.netbeans/3.4, .netbeans/3.5 in
this case) must be brandable

- the above check should be triggered only once, in subsequent starts
the IDE shouldn't check anything

- .netbeans/3.5, .netbeans/3.5 are the right values for Windows, Unix
and even MacOS.  But OpenVMS and OS/2 launchers use different
defaults.  Consider to make the list of old userdirs not only
brandable but also operating system specific

Comment 3 ulfzibis 2005-09-08 21:26:49 UTC
I not agree to simplify the ImportWizard to YES/NO.

Since I participate to the NetCAT program, I have different versions of NetBeans
on my machine. It's not easy to decide which are the 'appropriate' files to copy
by hand, and it's uncomfortable. It's so simple to have a FileChooser filled
with an appropriate preselection.
Btw. in case of having multiple development builds on the same machine it's not
possible use the default user dir in all cases.

Please discuss newly about this topic.
Comment 4 Michel Graciano 2005-09-08 23:27:57 UTC
I think the same, that I use not default folder to store the IDE settings.
I think that should be possible choose the folder/NB version for the settings
import.
Comment 5 Jiri Rechtacek 2005-09-12 10:51:53 UTC
No FileChooser planned in this simple import dialog. We suppose almost users use
default installation with userdirs on the default place. It's covered by simple
import dialog.
If an user uses a non-default userdir (e.g. --userdir <my place>) then can use
same userdir in both versions. It should work but on own risk of course.