Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.shp.ui
Class TypeSelectionPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by eu.esdihumboldt.hale.ui.HaleWizardPage<W>
              extended by eu.esdihumboldt.hale.ui.io.IOWizardPage<P,W>
                  extended by eu.esdihumboldt.hale.ui.io.config.AbstractConfigurationPage<InstanceReader,InstanceImportWizard>
                      extended by eu.esdihumboldt.hale.ui.io.instance.InstanceReaderConfigurationPage
                          extended by eu.esdihumboldt.hale.io.shp.ui.TypeSelectionPage
All Implemented Interfaces:
ShapefileConstants, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class TypeSelectionPage
extends InstanceReaderConfigurationPage
implements ShapefileConstants

Configuration page for selecting the schema type for Shapefile instances.

Author:
Simon Templer

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.io.shp.ShapefileConstants
DEFAULT_TYPE_NAME, PARAM_TYPENAME, SHAPEFILE_NS
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
TypeSelectionPage()
          default constructor
 
Method Summary
protected  void createContent(org.eclipse.swt.widgets.Composite page)
          Create the page content
 void disable()
          Disable the configuration page
 void enable()
          Enable the configuration page
protected  boolean isValidType(TypeDefinition schemaType)
          Determines if the given type is compatible to the structure of the selected file.
protected  void onShowPage(boolean firstShow)
          Called when this page is shown
 boolean updateConfiguration(InstanceReader provider)
          Update the configuration (of the I/O provider)
protected  void validateSelection()
          Validate the current selection.
 
Methods inherited from class eu.esdihumboldt.hale.ui.HaleWizardPage
createControl, dispose, getWizard
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, 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
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Constructor Detail

TypeSelectionPage

public TypeSelectionPage()
default constructor

Method Detail

enable

public void enable()
Description copied from class: AbstractConfigurationPage
Enable the configuration page

Specified by:
enable in class AbstractConfigurationPage<InstanceReader,InstanceImportWizard>
See Also:
AbstractConfigurationPage.enable()

disable

public void disable()
Description copied from class: AbstractConfigurationPage
Disable the configuration page

Specified by:
disable in class AbstractConfigurationPage<InstanceReader,InstanceImportWizard>
See Also:
AbstractConfigurationPage.disable()

onShowPage

protected void onShowPage(boolean firstShow)
Description copied from class: HaleWizardPage
Called when this page is shown

Overrides:
onShowPage in class HaleWizardPage<InstanceImportWizard>
Parameters:
firstShow - specifies if it is the first time the page is shown since its creation
See Also:
HaleWizardPage.onShowPage(boolean)

validateSelection

protected void validateSelection()
Validate the current selection. onShowPage(boolean) must have been called first to set lastType.


isValidType

protected boolean isValidType(TypeDefinition schemaType)
Determines if the given type is compatible to the structure of the selected file.

Parameters:
schemaType - the type to test
Returns:
if the type is compatible

createContent

protected void createContent(org.eclipse.swt.widgets.Composite page)
Description copied from class: HaleWizardPage
Create the page content

Specified by:
createContent in class HaleWizardPage<InstanceImportWizard>
Parameters:
page - the page composite, implementors may assign a custom layout to this composite
See Also:
HaleWizardPage.createContent(Composite)

updateConfiguration

public boolean updateConfiguration(InstanceReader provider)
Description copied from class: IOWizardPage
Update the configuration (of the I/O provider)

Specified by:
updateConfiguration in class IOWizardPage<InstanceReader,InstanceImportWizard>
Parameters:
provider - the I/O provider to update
Returns:
if the page is valid and updating the provider was successful
See Also:
IOWizardPage.updateConfiguration(IOProvider)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d