+ PluginManager
ands its openInstallWizard
+ shows standard UI for installing of selected modules.
+
This document lists changes made to the Autoupdate UI API.
+ + +@FOOTER@
+ + ++ The AutoUpdate UI module contains user visible elements (actions in menu, + dialogs), that allow any users to download new, or existing modules from + a pre-registered or manually registered update centers. In addition + the module also provides an API to allow other modules to + invoke pieces of the user related work flow (dialogs, wizards) directly + at moments independent on the rest of the provided UI. +
++ XXX +
++ The module is part of NetBeans IDE distribution for long time and its + functionality is covered and tested by many eyes using NetBeans IDE. + The API will be added in incremental manner (starting from 7.0) + and will slowly expose the + bits of already existing UI to external module writers. +
+
+
+ XXX no answer for compat-deprecation +
++ XXX no answer for compat-i18n +
++ XXX no answer for compat-standards +
++ XXX no answer for compat-version +
++ Runs of JRE. +
++ No need for JDK. +
++ XXX no answer for dep-non-nb +
++ XXX no answer for dep-platform +
+
+ You modules can use the AutoUpdateUI
API directly (of course
+ you almost certainly need also
+ Autoudate Services), just be aware that this module comes with a UI.
+ It is not always practical to depend on modules that provide a UI from
+ low level infrastructure modules - if that is your case, consider separating
+ calls to AutoUpdateUI
into separate
+ bridge module.
+
+ XXX no answer for deploy-jar +
++ XXX no answer for deploy-nbm +
++ XXX no answer for deploy-packages +
++ XXX no answer for deploy-shared +
++ XXX no answer for exec-ant-tasks +
++ XXX no answer for exec-classloader +
++ XXX no answer for exec-component +
++ XXX no answer for exec-introspection +
++ XXX no answer for exec-privateaccess +
++ XXX no answer for exec-process +
++ XXX no answer for exec-property +
++ XXX no answer for exec-reflection +
++ XXX no answer for exec-threading +
++ XXX no answer for format-clipboard +
++ XXX no answer for format-dnd +
++ XXX no answer for format-types +
++ XXX no answer for lookup-lookup +
++ XXX no answer for lookup-register +
++ XXX no answer for lookup-remove +
++ XXX no answer for perf-exit +
++ XXX no answer for perf-huge_dialogs +
++ XXX no answer for perf-limit +
++ XXX no answer for perf-mem +
++ XXX no answer for perf-menus +
++ XXX no answer for perf-progress +
++ XXX no answer for perf-scale +
++ XXX no answer for perf-spi +
++ XXX no answer for perf-startup +
++ XXX no answer for perf-wakeup +
++ XXX no answer for resources-file +
++ XXX no answer for resources-layer +
++ XXX no answer for resources-mask +
++ XXX no answer for resources-preferences +
++ XXX no answer for resources-read +
++ XXX no answer for security-grant +
++ XXX no answer for security-policy +
++{@link OperationContainer}+ * + * @param container the container with list of modules for install + * @return true if all the requested modules were successfullly installed, + * false otherwise. + */ + public static boolean openInstallWizard(OperationContainercontainer = OperationContainer.createForInstall(); +for ({@link UpdateUnit} u : {@link UpdateManager#getUpdateUnits(org.netbeans.api.autoupdate.UpdateManager.TYPE[]) UpdateManager.getDefault().getUpdateUnits(UpdateManager.TYPE.MODULE)}) { + if (u.getCodeName().matches("org.my.favorite.module")) { + if (u.getAvailableUpdates().isEmpty()) { + continue; + } + container.add(u.getAvailableUpdates().get(0)); + } +} +PluginManager.openInstallWizard(container); +