|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.wizard.Wizard
org.eclipse.mtl.ide.ui.wizards.newfile.MTLNewTemplatesWizard
public class MTLNewTemplatesWizard
This is a 'new' wizard for MTL templates. Its role is to create a new MTL 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 "mtl".
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.wizard.Wizard |
|---|
DEFAULT_IMAGE |
| Constructor Summary | |
|---|---|
MTLNewTemplatesWizard()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addPages()
|
void |
createPageControls(org.eclipse.swt.widgets.Composite pageContainer)
|
protected void |
createTemplate(CreateTemplateData data,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a template using the given configuration. |
void |
dispose()
|
java.util.List<IMTLExampleStrategy> |
getExampleStrategies()
Gets all the example strategies existing in the current Eclipse instance. |
java.util.List<MTLNewTemplateWizardPage> |
getTemplatePages()
Get templates pages. |
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection aSelection)
|
boolean |
performFinish()
|
| Methods inherited from class org.eclipse.jface.wizard.Wizard |
|---|
addPage, canFinish, 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, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer |
| Constructor Detail |
|---|
public MTLNewTemplatesWizard()
| Method Detail |
|---|
public java.util.List<MTLNewTemplateWizardPage> getTemplatePages()
public void createPageControls(org.eclipse.swt.widgets.Composite pageContainer)
createPageControls in interface org.eclipse.jface.wizard.IWizardcreatePageControls in class org.eclipse.jface.wizard.WizardWizard.createPageControls(org.eclipse.swt.widgets.Composite)public void dispose()
dispose in interface org.eclipse.jface.wizard.IWizarddispose in class org.eclipse.jface.wizard.WizardWizard.dispose()
public void init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection aSelection)
init in interface org.eclipse.ui.IWorkbenchWizardIWorkbenchWizard.init(org.eclipse.ui.IWorkbench,
org.eclipse.jface.viewers.IStructuredSelection)public void addPages()
addPages in interface org.eclipse.jface.wizard.IWizardaddPages in class org.eclipse.jface.wizard.WizardWizard.addPages()public java.util.List<IMTLExampleStrategy> getExampleStrategies()
public boolean performFinish()
performFinish in interface org.eclipse.jface.wizard.IWizardperformFinish in class org.eclipse.jface.wizard.WizardWizard.performFinish()
protected void createTemplate(CreateTemplateData data,
org.eclipse.core.runtime.IProgressMonitor monitor)
data - is the new template configurationmonitor - is the monitor
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||