ch.sahits.phpclassgenerator.wizards
Class PhpClassWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by ch.sahits.phpclassgenerator.wizards.PhpClassWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

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

The "New" wizard page allows setting 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 (php). $Revision: 1.2 $ changed by $Author: hotzst $ at $Date: 2007/10/27 18:01:03 $


Field Summary
private  org.eclipse.swt.widgets.Text containerText
           
private  org.eclipse.swt.widgets.Text fileText
           
private  org.eclipse.jface.viewers.ISelection selection
           
private  org.eclipse.swt.widgets.Text template
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
PhpClassWizardPage(org.eclipse.jface.viewers.ISelection selection)
          Constructor for SampleNewWizardPage.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
private  void dialogChanged()
          Ensures that both text fields are set.
 java.lang.String getContainerName()
          Get the name of the container
 java.lang.String getFileName()
          Get the file name
 java.lang.String getTemplate()
           
private  void handleBrowse()
          Uses the standard container selection dialog to choose the new value for the container field.
private  void handleBrowse2()
          Uses the standard container selection dialog to choose the new value for the container field.
private  void initialize()
          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

containerText

private org.eclipse.swt.widgets.Text containerText

fileText

private org.eclipse.swt.widgets.Text fileText

template

private org.eclipse.swt.widgets.Text template

selection

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

PhpClassWizardPage

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

Parameters:
selection - selection
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Parameters:
parent - parent Composition
See Also:
IDialogPage#createControl(Composite)

initialize

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


handleBrowse

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


handleBrowse2

private void handleBrowse2()
Uses the standard container selection dialog to choose the new value for the container field.


dialogChanged

private void dialogChanged()
Ensures that both text fields are set.


updateStatus

private void updateStatus(java.lang.String message)

getContainerName

public java.lang.String getContainerName()
Get the name of the container

Returns:
container name

getFileName

public java.lang.String getFileName()
Get the file name

Returns:
file name

getTemplate

public java.lang.String getTemplate()
Returns:
the template