|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jface.wizard.Wizard
org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
org.eclipse.hyades.ui.internal.wizard.exampleproject.CreationWizard
This wizard is designed to simplify the creation of project samples in Eclipse. Most of the actions to be performed by this class can be defined in the plugin registry when this wizard is defined.
This is a sample of an extension point definition that uses this plugin
The ${nn} variables available are ${plugins} - Parent directory of the plugin that declares the extension point ${base.plugins} - Parent directory of the "org.eclipse.boot" plugin ${pluginId="xxx"} - Directory of the xxx plugin (there should be no spaces before and after the equal signal
| Field Summary |
|---|
| Fields inherited from class org.eclipse.ui.wizards.newresource.BasicNewResourceWizard |
|---|
selection |
| Fields inherited from class org.eclipse.jface.wizard.Wizard |
|---|
DEFAULT_IMAGE |
| Constructor Summary | |
|---|---|
CreationWizard()
Constructor for CreationWizard |
|
| Method Summary | |
|---|---|
void |
addPages()
|
void |
createPageControls(org.eclipse.swt.widgets.Composite pageContainer)
|
protected CreationWizardPage |
createWizardPage(java.lang.String suggestedName,
org.eclipse.core.runtime.IConfigurationElement configurationElement)
Clients may overwrite this method to provide a customized implementation of the CreationWizardPage. |
void |
disableResourceOpening(boolean disableOpening)
Sets whether or not the wizard should open designated resources after the wizard has finished all of the appropriate actions when the user clicks on the finish button. |
protected boolean |
finishWork()
finishWork is a callback function that is called in the performWork method. |
IProjectAdjuster |
getAdjuster()
Returns the adjuster. |
protected CreationWizardPage[] |
getCreationWizardPages()
Returns the CreationWizardPage pages added to this
wizard. |
protected java.lang.String |
getPluginId()
Returns the id of the plugin that is declaring this wizard. |
protected java.lang.String[] |
getPluginIdsToResolve(java.lang.String text)
Returns the pluginsId that should be resolved. |
protected void |
initializeDefaultPageImageDescriptor()
|
boolean |
performFinish()
|
protected java.lang.String |
replaceClasspathVariables(java.lang.String value)
|
protected java.lang.String |
replaceVariableByPluginDirectory(java.lang.String text,
java.lang.String var,
java.lang.String pluginId,
boolean useParentDir)
|
void |
setAdjuster(IProjectAdjuster adjuster)
Sets the adjuster. |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement cfig,
java.lang.String propertyName,
java.lang.Object data)
Stores the configuration element for the wizard. |
| Methods inherited from class org.eclipse.ui.wizards.newresource.BasicNewResourceWizard |
|---|
getSelection, getWorkbench, init, selectAndReveal, selectAndReveal |
| Methods inherited from class org.eclipse.jface.wizard.Wizard |
|---|
addPage, canFinish, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchWizard |
|---|
init |
| Methods inherited from interface org.eclipse.jface.wizard.IWizard |
|---|
canFinish, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer |
| Constructor Detail |
public CreationWizard()
| Method Detail |
public void addPages()
addPages in interface org.eclipse.jface.wizard.IWizardIWizard.addPages()
protected CreationWizardPage createWizardPage(java.lang.String suggestedName,
org.eclipse.core.runtime.IConfigurationElement configurationElement)
CreationWizardPage.
suggestedName - The suggested name for the page to be created. This is not the
page title.configurationElement - The configuration element that describes this page.
null then there won't be a page for
the specified configuration element.protected CreationWizardPage[] getCreationWizardPages()
CreationWizardPage pages added to this
wizard.
public void createPageControls(org.eclipse.swt.widgets.Composite pageContainer)
createPageControls in interface org.eclipse.jface.wizard.IWizardIWizard.createPageControls(Composite)public IProjectAdjuster getAdjuster()
public void setAdjuster(IProjectAdjuster adjuster)
adjuster - The adjuster to setprotected java.lang.String replaceClasspathVariables(java.lang.String value)
protected java.lang.String replaceVariableByPluginDirectory(java.lang.String text,
java.lang.String var,
java.lang.String pluginId,
boolean useParentDir)
protected java.lang.String[] getPluginIdsToResolve(java.lang.String text)
text - where the expression {pluginId="xxx"} should be found
protected boolean finishWork()
public boolean performFinish()
performFinish in interface org.eclipse.jface.wizard.IWizardIWizard.performFinish()
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement cfig,
java.lang.String propertyName,
java.lang.Object data)
performFinish to set the result perspective.
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtensionprotected java.lang.String getPluginId()
protected void initializeDefaultPageImageDescriptor()
BasicNewResourceWizard.initializeDefaultPageImageDescriptor()public void disableResourceOpening(boolean disableOpening)
|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||