|
||||||||||
| 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
ch.sahits.phpclassgenerator.wizards.PhpClassWizardPage
public class PhpClassWizardPage
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 |
|---|
private org.eclipse.swt.widgets.Text containerText
private org.eclipse.swt.widgets.Text fileText
private org.eclipse.swt.widgets.Text template
private org.eclipse.jface.viewers.ISelection selection
| Constructor Detail |
|---|
public PhpClassWizardPage(org.eclipse.jface.viewers.ISelection selection)
selection - selection| Method Detail |
|---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
parent - parent CompositionIDialogPage#createControl(Composite)private void initialize()
private void handleBrowse()
private void handleBrowse2()
private void dialogChanged()
private void updateStatus(java.lang.String message)
public java.lang.String getContainerName()
public java.lang.String getFileName()
public java.lang.String getTemplate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||