Class AbstractNewFileWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- org.eclipse.epsilon.common.dt.wizards.AbstractNewFileWizard
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
,org.eclipse.jface.wizard.IWizard
,org.eclipse.ui.INewWizard
,org.eclipse.ui.IWorkbenchWizard
- Direct Known Subclasses:
NewHutnFileWizard
public abstract class AbstractNewFileWizard extends org.eclipse.jface.wizard.Wizard implements org.eclipse.ui.INewWizard
-
-
Field Summary
Fields Modifier and Type Field Description protected NewFileWizardPage
page
-
Constructor Summary
Constructors Constructor Description AbstractNewFileWizard()
AbstractNewFileWizard(NewFileWizardPage page)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addPages()
Adding the page to the wizard.protected String
determineInitialContents()
We will initialize file contents with a sample text.abstract String
getDescription()
abstract String
getExtension()
org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor()
abstract String
getTitle()
void
init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
We will accept the selection in the workbench to see if we can initialize from it.boolean
performFinish()
This method is called when 'Finish' button is pressed in the wizard.-
Methods inherited from class org.eclipse.jface.wizard.Wizard
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jface.wizard.IWizard
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
-
-
-
-
Field Detail
-
page
protected NewFileWizardPage page
-
-
Constructor Detail
-
AbstractNewFileWizard
public AbstractNewFileWizard()
-
AbstractNewFileWizard
public AbstractNewFileWizard(NewFileWizardPage page)
-
-
Method Detail
-
addPages
public void addPages()
Adding the page to the wizard.- Specified by:
addPages
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
addPages
in classorg.eclipse.jface.wizard.Wizard
-
performFinish
public boolean performFinish()
This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.- Specified by:
performFinish
in interfaceorg.eclipse.jface.wizard.IWizard
- Specified by:
performFinish
in classorg.eclipse.jface.wizard.Wizard
-
determineInitialContents
protected String determineInitialContents()
We will initialize file contents with a sample text.
-
init
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
We will accept the selection in the workbench to see if we can initialize from it.- Specified by:
init
in interfaceorg.eclipse.ui.IWorkbenchWizard
- See Also:
IWorkbenchWizard.init(IWorkbench, IStructuredSelection)
-
getTitle
public abstract String getTitle()
-
getExtension
public abstract String getExtension()
-
getDescription
public abstract String getDescription()
-
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
-
-