Package com._1c.g5.v8.dt.ui.wizards
Class DtNewWizardExtensionsRegistry
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.wizards.DtNewWizardExtensionsRegistry
-
public class DtNewWizardExtensionsRegistry extends Object
The workbench's global registry of DT wizard page extensions. Readscom._1c.g5.v8.dt.ui.dtNewWizardExtensions
extension point.- See Also:
IDtNewWizardPage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DtNewWizardExtensionsRegistry.DtNewWizardPageExtension
Support class to hold page extension description.
-
Constructor Summary
Constructors Constructor Description DtNewWizardExtensionsRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,List<DtNewWizardExtensionsRegistry.DtNewWizardPageExtension>>
getExtensions()
Returns all registered DT wizard extension pages as map: wizard id to list of page extensions.List<IDtNewWizardPage<?>>
getPageExtensions(String wizardId)
Returns page extensions for the given DT wizard by the wizard id.protected Map<String,List<DtNewWizardExtensionsRegistry.DtNewWizardPageExtension>>
laodExtensions()
Load all registered DT wizard extension and returns loaded extensions as map: wizard id to list of page extensions.protected DtNewWizardExtensionsRegistry.DtNewWizardPageExtension
loadExtension(org.eclipse.core.runtime.IConfigurationElement configurationElement)
Load single DT wizard extension by the configuration element.
-
-
-
Method Detail
-
getPageExtensions
public List<IDtNewWizardPage<?>> getPageExtensions(String wizardId)
Returns page extensions for the given DT wizard by the wizard id. If wizard extension pages are not registered, empty list will be returned.Order of the pages will match with pages extension description
beforePage
andafterPage
attributes.- Parameters:
wizardId
- the DT wizard id to get wizard extension pages for, cannot benull
- Returns:
- page extensions for the given DT wizard, never
null
-
getExtensions
protected Map<String,List<DtNewWizardExtensionsRegistry.DtNewWizardPageExtension>> getExtensions()
Returns all registered DT wizard extension pages as map: wizard id to list of page extensions. Method is synchronized.- Returns:
- all registered DT wizard extension pages, never
null
-
laodExtensions
protected Map<String,List<DtNewWizardExtensionsRegistry.DtNewWizardPageExtension>> laodExtensions()
Load all registered DT wizard extension and returns loaded extensions as map: wizard id to list of page extensions.- Returns:
- all loaded extensions DT wizard extension pages, never
null
-
loadExtension
protected DtNewWizardExtensionsRegistry.DtNewWizardPageExtension loadExtension(org.eclipse.core.runtime.IConfigurationElement configurationElement)
Load single DT wizard extension by the configuration element. Can returnnull
if element was not configured properly. Errors will be logged.- Parameters:
configurationElement
- the configuration element to load DT wizard extension for, cannot benull
- Returns:
- loaded DT wizard extension or
null
if element was not configured properly
-
-