de.upb.swt.epctools.plugin.wizards
Class EpctoolsNewWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by de.upb.swt.epctools.plugin.wizards.EpctoolsNewWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class EpctoolsNewWizardPage
extends org.eclipse.jface.wizard.WizardPage

This function represents the epctools "new file wizard". The "New" wizard page allows the setting of the container for the new file as well as the file name. The page will only accept file name without the extension OR with the extension that matches the expected one (epml).


Field Summary
private  org.eclipse.swt.widgets.Text m_container_text
           
private  org.eclipse.swt.widgets.Text m_file_text
           
private  org.eclipse.jface.viewers.ISelection m_selection
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
EpctoolsNewWizardPage(org.eclipse.jface.viewers.ISelection selection)
          Constructor for EpctoolsNewWizardPage.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
private  void dialogChanged()
          This function ensures that both text fields are set.
 java.lang.String getContainerName()
          This function returns the container name.
 java.lang.String getFileName()
          This function returns the entered file name.
private  void handleBrowse()
          This function uses the standard container selection dialog to choose the new value for the container field.
private  void initialize()
          This function tests if the current workbench selection is a suitable container to use.
private  void updateStatus(java.lang.String message)
           
 
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
 

Field Detail

m_container_text

private org.eclipse.swt.widgets.Text m_container_text

m_file_text

private org.eclipse.swt.widgets.Text m_file_text

m_selection

private org.eclipse.jface.viewers.ISelection m_selection
Constructor Detail

EpctoolsNewWizardPage

public EpctoolsNewWizardPage(org.eclipse.jface.viewers.ISelection selection)
Constructor for EpctoolsNewWizardPage.

Method Detail

createControl

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

initialize

private void initialize()
This function tests if the current workbench selection is a suitable container to use.


handleBrowse

private void handleBrowse()
This function uses the standard container selection dialog to choose the new value for the container field.


dialogChanged

private void dialogChanged()
This function ensures that both text fields are set.


updateStatus

private void updateStatus(java.lang.String message)

getContainerName

public java.lang.String getContainerName()
This function returns the container name.


getFileName

public java.lang.String getFileName()
This function returns the entered file name.