Class AbstractXtextFileCreationWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- org.palladiosimulator.dataflow.confidentiality.ui.wizard.AbstractXtextFileCreationWizard
-
- All Implemented Interfaces:
IShellProvider
,IWizard
,INewWizard
,IWorkbenchWizard
- Direct Known Subclasses:
AbstractCharacterizedDataDictionaryWizard
public abstract class AbstractXtextFileCreationWizard extends Wizard implements INewWizard
-
-
Field Summary
Fields Modifier and Type Field Description protected WizardNewFileCreationPage
fileCreationPage
protected String
fileExtension
protected String
fileTypeName
protected com.google.inject.Injector
injector
protected IWorkbench
workbench
-
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
-
-
Constructor Summary
Constructors Constructor Description AbstractXtextFileCreationWizard(com.google.inject.Injector injector, String fileTypeName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addPages()
protected abstract void
createXtextFile(IFile file, IProgressMonitor progressMonitor)
protected Optional<DialogPage>
getCurrentPage()
protected IFile
getFileToCreate()
void
init(IWorkbench workbench, IStructuredSelection selection)
boolean
performFinish()
protected boolean
validateFilename(String filename, Consumer<String> errorMessageConsumer)
-
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
-
injector
protected final com.google.inject.Injector injector
-
fileTypeName
protected final String fileTypeName
-
fileExtension
protected final String fileExtension
-
fileCreationPage
protected WizardNewFileCreationPage fileCreationPage
-
workbench
protected IWorkbench workbench
-
-
Constructor Detail
-
AbstractXtextFileCreationWizard
public AbstractXtextFileCreationWizard(com.google.inject.Injector injector, String fileTypeName)
-
-
Method Detail
-
addPages
public void addPages()
-
init
public void init(IWorkbench workbench, IStructuredSelection selection)
- Specified by:
init
in interfaceIWorkbenchWizard
-
validateFilename
protected boolean validateFilename(String filename, Consumer<String> errorMessageConsumer)
-
getCurrentPage
protected Optional<DialogPage> getCurrentPage()
-
performFinish
public boolean performFinish()
- Specified by:
performFinish
in interfaceIWizard
- Specified by:
performFinish
in classWizard
-
createXtextFile
protected abstract void createXtextFile(IFile file, IProgressMonitor progressMonitor) throws CoreException
- Throws:
CoreException
-
getFileToCreate
protected IFile getFileToCreate()
-
-