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
-
Field Summary
Modifier and TypeFieldDescriptionprotected WizardNewFileCreationPage
protected final String
protected final String
protected final com.google.inject.Injector
protected IWorkbench
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
-
Constructor Summary
ConstructorDescriptionAbstractXtextFileCreationWizard
(com.google.inject.Injector injector, String fileTypeName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPages()
protected abstract void
createXtextFile
(IFile file, IProgressMonitor progressMonitor) protected Optional<DialogPage>
protected IFile
void
init
(IWorkbench workbench, IStructuredSelection selection) boolean
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 Details
-
injector
protected final com.google.inject.Injector injector -
fileTypeName
-
fileExtension
-
fileCreationPage
-
workbench
-
-
Constructor Details
-
AbstractXtextFileCreationWizard
-
-
Method Details
-
addPages
public void addPages() -
init
- Specified by:
init
in interfaceIWorkbenchWizard
-
validateFilename
-
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
-