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 WizardNewFileCreationPagefileCreationPageprotected StringfileExtensionprotected StringfileTypeNameprotected com.google.inject.Injectorinjectorprotected IWorkbenchworkbench-
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 voidaddPages()protected abstract voidcreateXtextFile(IFile file, IProgressMonitor progressMonitor)protected Optional<DialogPage>getCurrentPage()protected IFilegetFileToCreate()voidinit(IWorkbench workbench, IStructuredSelection selection)booleanperformFinish()protected booleanvalidateFilename(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:
initin interfaceIWorkbenchWizard
-
validateFilename
protected boolean validateFilename(String filename, Consumer<String> errorMessageConsumer)
-
getCurrentPage
protected Optional<DialogPage> getCurrentPage()
-
performFinish
public boolean performFinish()
- Specified by:
performFinishin interfaceIWizard- Specified by:
performFinishin classWizard
-
createXtextFile
protected abstract void createXtextFile(IFile file, IProgressMonitor progressMonitor) throws CoreException
- Throws:
CoreException
-
getFileToCreate
protected IFile getFileToCreate()
-
-