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.
Summary: | Restart IDE plugin prevents plugins scheduled at restart from being run. | ||
---|---|---|---|
Product: | platform | Reporter: | sproger1 |
Component: | Autoupdate | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | NEW --- | ||
Severity: | normal | CC: | Rano-aj |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://plugins.netbeans.org/plugin/42525 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
sproger1
2014-09-16 15:23:13 UTC
Benno, would you be so kind and take a look at this issue? Thanks a lot! org.openide.LifecycleManager.markForRestart()/exit() is official and stable API to restart the platform. Yes, the plugin is that simple. The difference between this simple restart and the restart by the updater is that the updater marks several modules to be updated. This is done in * org.netbeans.modules.autoupdate.services.InstallSupportImpl.doRestartLater(Restarter) * org.netbeans.modules.autoupdate.services.Utilities.writeInstallLater(UpdateElementImpl,File>) I am sorry, my plugin cannot emulate that, because I have no idea how to get the Restarter object instance to call org.netbeans.api.autoupdate.InstallSupport.doRestart(Restarter, ProgressHandle) properly. Perhaps the original author (Jiri Rechtacek) of InstallSupportImpl can help? @Rano-aj@netbeans.org: Please do not update the target version! It is for the NB dev only. Please do not update the version! It states in which version the issue has been reported first. Reverting all your changes! |