public abstract class NewPluginProjectFromTemplateWizard extends org.eclipse.pde.internal.ui.wizards.NewWizard implements IExecutableExtension
getTemplateID()
method will create a wizard with the same UI components as the standard new plug-in
project wizard. However, instead of asking the user to select a template, the template
is predetermined. The template selection page will be skipped going directly to the
wizard associated with the template. In addition, if the template requires certain
settings (determined by the flags set on the extension), the associated UI components
will be disabled so that the user cannot change their value.
Other aspects of this wizard including the window title can be edited by overriding
methods in the subclass.Modifier and Type | Field and Description |
---|---|
static String |
DEF_PROJECT_NAME
Key for storing the project name in the wizard default values
|
static String |
PLUGIN_POINT
Key for storign the extension point name in the wizard default values
|
static String |
TAG_WIZARD
The extension element that contains the wizard class
|
DEFAULT_IMAGE
Constructor and Description |
---|
NewPluginProjectFromTemplateWizard()
Constructor to create a new wizard
|
Modifier and Type | Method and Description |
---|---|
void |
addPages() |
boolean |
canFinish() |
protected abstract String |
getTemplateID()
Returns the string id of the template extension to use as the template for the
new plug-in project wizard.
|
boolean |
performFinish() |
void |
setInitializationData(IConfigurationElement config,
String propertyName,
Object data) |
getDefaultValue, getSelection, getWorkbench, init, init
addPage, 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
createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
public static final String DEF_PROJECT_NAME
public static final String PLUGIN_POINT
public static final String TAG_WIZARD
public NewPluginProjectFromTemplateWizard()
protected abstract String getTemplateID()
null
.public void addPages()
public boolean canFinish()
public boolean performFinish()
performFinish
in interface IWizard
performFinish
in class org.eclipse.pde.internal.ui.wizards.NewWizard
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException
setInitializationData
in interface IExecutableExtension
CoreException
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.