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.
[ 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.
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.
Disabling the checkbox doesn't help. I.e. the imported favourites were not displayed, and old content of Favourites window remains.
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?
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.
> 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.
Much thanks, I agree. :-) More difficult settings could be analysed later, if the could be enabled immediately.
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.
> 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).
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.