Class VTLFiletypeWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- net.ssehub.easy.dslCore.ui.wizards.AbstractFiletypeWizard
-
- de.uni_hildesheim.sse.vil.templatelang.ui.wizards.VTLFiletypeWizard
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider,org.eclipse.jface.wizard.IWizard,org.eclipse.ui.INewWizard,org.eclipse.ui.IWorkbenchWizard
public class VTLFiletypeWizard extends AbstractFiletypeWizard
This is a sample new wizard. Its role is to create a new file resource in the provided container. If the container resource (a folder or a project) is selected in the workspace when the wizard is opened, it will accept it as the target container. The wizard creates one file with the extension "vtl". If a sample multi-page editor (also available as a template) is registered for the same extension, it will be able to open it.- Author:
- El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringDEFAULT_PARAMETERSDefault parameters for the complete template as well as for the main method.-
Fields inherited from class net.ssehub.easy.dslCore.ui.wizards.AbstractFiletypeWizard
INDENTION, LINEFEED
-
-
Constructor Summary
Constructors Constructor Description VTLFiletypeWizard()Sole Constructor for VTLFiletypeWizard.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.InputStreamopenContentStream(java.lang.String fileName)We will initialize file contents.-
Methods inherited from class net.ssehub.easy.dslCore.ui.wizards.AbstractFiletypeWizard
addPages, init, performFinish
-
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
-
DEFAULT_PARAMETERS
private static final java.lang.String DEFAULT_PARAMETERS
Default parameters for the complete template as well as for the main method. Also includes opening parenthesis and line feed.- See Also:
- Constant Field Values
-
-
Method Detail
-
openContentStream
protected java.io.InputStream openContentStream(java.lang.String fileName)
Description copied from class:AbstractFiletypeWizardWe will initialize file contents.- Specified by:
openContentStreamin classAbstractFiletypeWizard- Parameters:
fileName- the name of the file without the extension.- Returns:
- the Contents to insert in the newly created file.
-
-