pl.edu.agh.cast.data.ui.template
Class NewTemplateWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by pl.edu.agh.cast.data.ui.template.NewTemplateWizardPage
All Implemented Interfaces:
EventListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class NewTemplateWizardPage
extends org.eclipse.jface.wizard.WizardPage
implements org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener

First page of the template creation wizard, which servers for selection of all basic information that are required by the new template.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
NewTemplateWizardPage(String pageName)
          The default constructor.
 
Method Summary
 boolean canFlipToNextPage()
          
 void createControl(org.eclipse.swt.widgets.Composite parent)
          
 String getFormatId()
           
 Map<String,String> getImporterOptions()
           
 org.eclipse.core.runtime.IConfigurationElement getModelConfiguration()
           
 String getModelId()
           
 org.eclipse.jface.wizard.IWizardPage getNextPage()
          
 String getPreprocessorDescription()
          Retrieves the preprocessor description.
 String getPreprocessorId()
          Retrieves the preprocessor identifier.
 String getSamplePrototypeContent()
          Creates and returns an input sample file content for the file preview, according to a specified importer.
 String getTemplateDescription()
           
 String getTemplateFileName()
           
 void modifyText(org.eclipse.swt.events.ModifyEvent e)
          
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
          
 void widgetModified()
          Method is called whenever any widget had been selected or modified, and checks if the page had arrived to its completed state.
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
          
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
getContainer, getDialogSettings, getImage, getName, 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

NewTemplateWizardPage

public NewTemplateWizardPage(String pageName)
The default constructor.

Parameters:
pageName - name of new template page
Method Detail

getModelConfiguration

public org.eclipse.core.runtime.IConfigurationElement getModelConfiguration()

getModelId

public String getModelId()

getFormatId

public String getFormatId()

getPreprocessorId

public String getPreprocessorId()
Retrieves the preprocessor identifier.

Returns:
the preprocessor id

getPreprocessorDescription

public String getPreprocessorDescription()
Retrieves the preprocessor description.

Returns:
the preprocessor description

getTemplateFileName

public String getTemplateFileName()

getTemplateDescription

public String getTemplateDescription()

widgetModified

public void widgetModified()
Method is called whenever any widget had been selected or modified, and checks if the page had arrived to its completed state.


getImporterOptions

public Map<String,String> getImporterOptions()

getSamplePrototypeContent

public String getSamplePrototypeContent()
Creates and returns an input sample file content for the file preview, according to a specified importer.

Returns:
the file preview content

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
See Also:
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)

modifyText

public void modifyText(org.eclipse.swt.events.ModifyEvent e)

Specified by:
modifyText in interface org.eclipse.swt.events.ModifyListener
See Also:
ModifyListener.modifyText(org.eclipse.swt.events.ModifyEvent)

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)

Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener
See Also:
SelectionListener.widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)

Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
See Also:
SelectionListener.widgetSelected(org.eclipse.swt.events.SelectionEvent)

canFlipToNextPage

public boolean canFlipToNextPage()

Specified by:
canFlipToNextPage in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
canFlipToNextPage in class org.eclipse.jface.wizard.WizardPage
See Also:
WizardPage.canFlipToNextPage()

getNextPage

public org.eclipse.jface.wizard.IWizardPage getNextPage()

Specified by:
getNextPage in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
getNextPage in class org.eclipse.jface.wizard.WizardPage
See Also:
WizardPage.getNextPage()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.