public abstract class AbstractNewPluginTemplateWizard extends Wizard implements IBundleContentWizard
DEFAULT_IMAGE| Constructor and Description |
|---|
AbstractNewPluginTemplateWizard()
Creates a new template wizard.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addAdditionalPages()
This wizard adds a mandatory first page.
|
void |
addPages()
Implements wizard method.
|
IFieldData |
getData()
Returns the field data passed to the wizard during the initialization.
|
IPluginReference[] |
getDependencies(String schemaVersion)
Returns new dependencies that are required by this wizard.
|
String[] |
getImportPackages()
Returns names of packages that are required by this wizard.
|
String[] |
getNewFiles()
The wizard is required to return an array of new file and folder names
that are generated by it for the purpose of inclusion in
build.properties file. |
abstract ITemplateSection[] |
getTemplateSections()
Returns the template sections used in this wizard.
|
boolean |
hasPages()
Returns whether this wizard has at least one page
|
void |
init(IFieldData data)
Initializes the wizard with the data collected from the parent wizard
pages.
|
boolean |
performFinish() |
boolean |
performFinish(IProject project,
IPluginModelBase model,
IProgressMonitor monitor)
Implements the interface method by looping through template sections and
executing them sequentially.
|
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainerpublic AbstractNewPluginTemplateWizard()
public void init(IFieldData data)
IPluginContentWizardinit in interface IPluginContentWizarddata - all the information collected in the parent wizard that can be
used in configuring the generated contentpublic IFieldData getData()
protected abstract void addAdditionalPages()
public final void addPages()
public boolean performFinish()
performFinish in interface IWizardperformFinish in class Wizardpublic boolean performFinish(IProject project, IPluginModelBase model, IProgressMonitor monitor)
performFinish in interface IPluginContentWizardproject - the projectmodel - the plug-in modelmonitor - the progress monitor to track the execution progress as part
of the overall new project creation operationtrue if the wizard completed the operation with
success, false otherwise.public abstract ITemplateSection[] getTemplateSections()
public IPluginReference[] getDependencies(String schemaVersion)
IPluginContentWizardgetDependencies in interface IPluginContentWizardschemaVersion - version of the plug-in manifest, or null if
older manifest (prior to 3.0) has been created. Depending on
the manifest version, the list of dependencies may vary.public String[] getNewFiles()
IPluginContentWizardbuild.properties file. All files and folders that must be
part of the binary build must be listed in bin.includes
variable. Since the tokens obtained by this method will be passed to the
variable as-is, it is legal to use all wild cards also legal in
build.properties,
such as "*.png".getNewFiles in interface IPluginContentWizardpublic boolean hasPages()
public String[] getImportPackages()
IBundleContentWizardgetImportPackages in interface IBundleContentWizard
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.