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 173999 - [68cat] Automatic restart IDE after import of settings
Summary: [68cat] Automatic restart IDE after import of settings
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords: UI
Depends on: 182495
Blocks:
  Show dependency tree
 
Reported: 2009-10-07 17:34 UTC by ulfzibis
Modified: 2010-03-22 14:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2009-10-07 17:34:05 UTC
[ BUILD # : 4016--090930 ]
[ JDK VERSION : 1.6.* ]

IDE should _not always_ restart automatically after importing
settings.
E.g. after importing Favourites settings, it should not be necessary
to restart the IDE.
Comment 1 Jiri Skrivanek 2009-10-08 08:09:11 UTC
There is a check box to suppress restart of the IDE. User can decide whether he wants to restart now or later. We don't
have any option how to handle it automatically.
Comment 2 ulfzibis 2009-10-08 10:03:34 UTC
Disabling the checkbox doesn't help. I.e. the imported favourites were not displayed, and old content of Favourites
window remains.
Comment 3 Jiri Skrivanek 2009-10-08 11:41:41 UTC
So, restart of the IDE  is necessary to display imported favorites. Then I don't know what is wrong. Restart the IDE as
suggested and everything is OK. Why do you think restart should not be necessary?
Comment 4 ulfzibis 2009-10-08 15:40:20 UTC
1.) There is no hint in the dialogue, that suppressing the restart would prevent from making the imported settings work.
2.) I believe, there is a simple way to update the content of the Favourites window according the imported settings
without restarting the whole IDE.
3.) Favourites should just be an example here for several other setting, which could easily be enabled after import
without restarting the IDE.
Comment 5 Jiri Skrivanek 2009-10-09 11:35:00 UTC
> 1.) You are right. I added a hint (core-main #80cb2fae73bb).
> 2.) I added refresh of system filesystem when user skips restart of the IDE after import (core-main #04d150d4d185).
> 3.) It is not as easy. Usually settings are somehow cached and they are loaded during IDE startup. There is no general
API to reload all settings.

I am closing as fixed because I believe I resolved at least your use case with import of favorites. Anyway for majority
of other cases is highly recommended to restart the IDE after import of settings.
Comment 6 ulfzibis 2009-10-09 11:53:43 UTC
Much thanks, I agree.  :-)

More difficult settings could be analysed later, if the could be enabled immediately.
Comment 7 Quality Engineering 2009-10-14 10:53:04 UTC
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/80cb2fae73bb
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #173999 - Hint users about need of restart to make imported settings work.
Comment 8 ulfzibis 2009-10-14 13:59:35 UTC
> 3.) It is not as easy. Usually settings are somehow cached and they are loaded during IDE startup.
>     There is no general API to reload all settings.

I estimate, that all settings, which are changeable on the fly e.g. from Menu or Options dialogue, could instantly
enabled from import too.

So I reopen this for later investigation. (Hopefully you will accept).
Comment 9 Jiri Skrivanek 2009-10-14 14:23:19 UTC
Every module can handle its settings its own way, so it is not possible to re-read all settings. Please, do not reopen
this issue again. If you insist on importing without restart, please file a new FEATURE issue. This is really not a
defect. I hope to do a restart once a release when user imported settings is not a big deal.