TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.common.ui.wizard
Class LocationPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.ui.dialogs.WizardNewFileCreationPage
              extended by org.eclipse.tptp.platform.common.ui.wizard.LocationPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage, org.eclipse.swt.widgets.Listener

public class LocationPage
extends org.eclipse.ui.dialogs.WizardNewFileCreationPage

Extension of WizardNewFileCreationPage that allows the definition of a required file extension to be used.


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
LocationPage(java.lang.String pageName, org.eclipse.jface.viewers.IStructuredSelection selection)
          Constructor for LocationPage
 
Method Summary
 boolean allowOverwrite()
           
 java.lang.String getFileExtension()
          Returns the required file extension.
 java.lang.String getFileName()
           
 java.lang.String getItemName()
          Returns the text displayed in the Name field.
 void setAllowOverwrite(boolean allowOverwrite)
           
 void setFileExtension(java.lang.String fileExtension)
          Sets the required file extension.
 void setNameValidator(ICustomLocationNameValidation nameValidator)
          name validator will complete name check to allow to pass to next page
 
Methods inherited from class org.eclipse.ui.dialogs.WizardNewFileCreationPage
createControl, createNewFile, getContainerFullPath, handleEvent, setAllowExistingResources, setContainerFullPath, setFileName, setVisible
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getMessageType, getTitle, performHelp, setMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Constructor Detail

LocationPage

public LocationPage(java.lang.String pageName,
                    org.eclipse.jface.viewers.IStructuredSelection selection)
Constructor for LocationPage

Parameters:
pageName -
selection -
Method Detail

setAllowOverwrite

public void setAllowOverwrite(boolean allowOverwrite)

allowOverwrite

public boolean allowOverwrite()

setNameValidator

public void setNameValidator(ICustomLocationNameValidation nameValidator)
name validator will complete name check to allow to pass to next page

Parameters:
nameValidator -

setFileExtension

public void setFileExtension(java.lang.String fileExtension)
Sets the required file extension.

Overrides:
setFileExtension in class org.eclipse.ui.dialogs.WizardNewFileCreationPage
Parameters:
fileExtension -

getFileExtension

public java.lang.String getFileExtension()
Returns the required file extension.

Overrides:
getFileExtension in class org.eclipse.ui.dialogs.WizardNewFileCreationPage
Returns:
Sting

getFileName

public java.lang.String getFileName()
Overrides:
getFileName in class org.eclipse.ui.dialogs.WizardNewFileCreationPage
See Also:
WizardNewFileCreationPage.getFileName()

getItemName

public java.lang.String getItemName()
Returns the text displayed in the Name field.


TPTP 4.6.0 Platform Project
Public API Specification