|
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
org.eclipse.hyades.ui.internal.wizard.exampleproject.ZipAdjusterCreationWizard
Subclass of the CreationWizard that adjusts the contents of zip files to reflect the name of the project that was chosen by the user.
The zip file extensions to be changed are supposed to be defined in the
implementation of addZipExtensions().
The zip is supposed to contain only text files that are encoded as defined
in setEncoding(String). The default encoding is "UTF-8".
| 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 | |
|---|---|
ZipAdjusterCreationWizard()
Constructor for ComptestExampleCreationWizard. |
|
| Method Summary | |
|---|---|
boolean |
addZipExtension(java.lang.String zipExtension)
Adds a zip extension to be changed by this wizard. |
protected abstract void |
addZipExtensions()
Clients should add the extension to be changed in this method by using the addZipExtension(String). |
java.io.File |
adjust(CreationWizardPage[] pages,
CreationWizardPage currentPage,
java.io.File file)
|
java.util.zip.ZipFile |
adjust(CreationWizardPage[] pages,
CreationWizardPage currentPage,
java.util.zip.ZipFile zipFile)
|
void |
afterWorspaceRefresh(CreationWizardPage[] pages)
|
void |
beforeWorspaceRefresh(CreationWizardPage[] pages)
|
java.util.zip.ZipFile |
copyZip(java.lang.String sourceZip,
java.lang.String targetZip,
java.lang.String[] oldPats,
java.lang.String[] newPats)
Creates a copy of a zip file. |
void |
dispose()
|
void |
finished(CreationWizardPage page,
java.io.File file)
|
void |
finished(CreationWizardPage page,
java.util.zip.ZipFile zipFile)
|
java.lang.String |
getEncoding()
Returns the current encoding for the contents of the zip files. |
void |
removeAllZipExtensions()
Removes all zip extension that are changed by this wizard. |
boolean |
removeZipExtension(java.lang.String zipExtension)
Removes a zip extension to be changed by this wizard. |
void |
setEncoding(java.lang.String encoding)
Sets the current encoding for the contents of the zip files. |
| Methods inherited from class org.eclipse.hyades.ui.internal.wizard.exampleproject.CreationWizard |
|---|
addPages, createPageControls, createWizardPage, disableResourceOpening, finishWork, getAdjuster, getCreationWizardPages, getPluginId, getPluginIdsToResolve, initializeDefaultPageImageDescriptor, performFinish, replaceClasspathVariables, replaceVariableByPluginDirectory, setAdjuster, setInitializationData |
| 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, 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, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer |
| Constructor Detail |
public ZipAdjusterCreationWizard()
| Method Detail |
protected abstract void addZipExtensions()
addZipExtension(String).
public void dispose()
dispose in interface org.eclipse.jface.wizard.IWizardIWizard.dispose()public boolean addZipExtension(java.lang.String zipExtension)
zipExtension -
public boolean removeZipExtension(java.lang.String zipExtension)
zipExtension -
public void removeAllZipExtensions()
public java.util.zip.ZipFile adjust(CreationWizardPage[] pages,
CreationWizardPage currentPage,
java.util.zip.ZipFile zipFile)
adjust in interface IProjectAdjuster
public void finished(CreationWizardPage page,
java.util.zip.ZipFile zipFile)
finished in interface IProjectAdjuster
public java.io.File adjust(CreationWizardPage[] pages,
CreationWizardPage currentPage,
java.io.File file)
adjust in interface IProjectAdjuster
public void finished(CreationWizardPage page,
java.io.File file)
finished in interface IProjectAdjuster
public java.util.zip.ZipFile copyZip(java.lang.String sourceZip,
java.lang.String targetZip,
java.lang.String[] oldPats,
java.lang.String[] newPats)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundExceptionpublic void beforeWorspaceRefresh(CreationWizardPage[] pages)
beforeWorspaceRefresh in interface IProjectAdjusterpublic void afterWorspaceRefresh(CreationWizardPage[] pages)
afterWorspaceRefresh in interface IProjectAdjusterpublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
|
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 | ||||||||||