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, setWindowTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
public AbstractNewPluginTemplateWizard()
public void init(IFieldData data)
IPluginContentWizard
init
in interface IPluginContentWizard
data
- 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 IWizard
performFinish
in class Wizard
public boolean performFinish(IProject project, IPluginModelBase model, IProgressMonitor monitor)
performFinish
in interface IPluginContentWizard
project
- 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)
IPluginContentWizard
getDependencies
in interface IPluginContentWizard
schemaVersion
- 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()
IPluginContentWizard
build.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 IPluginContentWizard
public boolean hasPages()
public String[] getImportPackages()
IBundleContentWizard
getImportPackages
in interface IBundleContentWizard
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.