|
|||||||||
| 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
de.upb.swt.epctools.plugin.wizards.EpctoolsNewWizardPage
public class EpctoolsNewWizardPage
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 |
|---|
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
| Constructor Detail |
|---|
public EpctoolsNewWizardPage(org.eclipse.jface.viewers.ISelection selection)
| Method Detail |
|---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
private void initialize()
private void handleBrowse()
private void dialogChanged()
private void updateStatus(java.lang.String message)
public java.lang.String getContainerName()
public java.lang.String getFileName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||