|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.mtl.ide.ui.wizards.newfile.MTLNewTemplateWizardPage
public class MTLNewTemplateWizardPage
This is a 'new' wizard page 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 page is opened, it will accept it as the target container. The wizard page creates one file with the extension "mtl".
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
|---|
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
|---|---|
MTLNewTemplateWizardPage(org.eclipse.core.resources.IContainer selectedContainer,
int num)
Constructor. |
|
| Method Summary | |
|---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
java.lang.String |
getMetamodelType()
Returns the main metamodel type. |
java.lang.String |
getMetamodelURI()
Returns the metamodel URI. |
java.lang.String |
getTemplateContainer()
Gets the path of the container (workspace relative path). |
java.lang.String |
getTemplateExample()
Gets the path of the example file (workspace relative path). |
IMTLExampleStrategy |
getTemplateExampleStrategy()
Gets the selected example strategy. |
java.lang.String |
getTemplateName()
Gets the template name (without extension). |
void |
handleNewTemplatePageChanging(org.eclipse.jface.wizard.WizardPage previousPage)
One listener is notified when the current page of a wizard is changing. |
| Methods inherited from class org.eclipse.jface.wizard.WizardPage |
|---|
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString |
| Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
|---|
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
|---|
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible |
| Constructor Detail |
|---|
public MTLNewTemplateWizardPage(org.eclipse.core.resources.IContainer selectedContainer,
int num)
selectedContainer - is the containing resource path in the workspace (can be null)num - is the number of this 'template' page in the wizard (1-based index)| Method Detail |
|---|
public void handleNewTemplatePageChanging(org.eclipse.jface.wizard.WizardPage previousPage)
previousPage - is the previous page of the wizardpublic void createControl(org.eclipse.swt.widgets.Composite parent)
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)public java.lang.String getTemplateContainer()
public java.lang.String getTemplateName()
public java.lang.String getTemplateExample()
public IMTLExampleStrategy getTemplateExampleStrategy()
public java.lang.String getMetamodelURI()
public java.lang.String getMetamodelType()
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||