Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.io
Class ImportSelectSourcePage.SourcePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by eu.esdihumboldt.hale.ui.io.internal.WizardPageDecorator
              extended by eu.esdihumboldt.hale.ui.io.ImportSelectSourcePage.SourcePage
All Implemented Interfaces:
ImportSource.SourceConfiguration<P>, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
Enclosing class:
ImportSelectSourcePage<P extends ImportProvider,W extends ImportWizard<P>>

public class ImportSelectSourcePage.SourcePage
extends WizardPageDecorator
implements ImportSource.SourceConfiguration<P>

Import source page


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ImportSelectSourcePage.SourcePage(ImportSource<P> importSource, org.eclipse.swt.widgets.Composite parent, org.eclipse.core.runtime.content.IContentType initialContentType)
          Create an import source page and add it to the ImportSelectSourcePage.sources list.
 
Method Summary
 void activate()
          Activate the source page.
 void dispose()
           
 org.eclipse.core.runtime.content.IContentType getContentType()
          Get the content type assigned to the configuration
 String getErrorMessage()
           
 Collection<IOProviderDescriptor> getFactories()
          Get the available provider descriptors.
 ImportSource<P> getImportSource()
           
 int getIndex()
           
 String getMessage()
           
 int getMessageType()
           
 IOProviderDescriptor getProviderFactory()
          Get the provider factory assigned to the configuration.
 W getWizard()
           
 boolean isPageComplete()
           
 void setContentType(org.eclipse.core.runtime.content.IContentType contentType)
          Assign a content type to the configuration
 void setErrorMessage(String newMessage)
           
 void setMessage(String newMessage)
           
 void setMessage(String newMessage, int newType)
           
 void setPageComplete(boolean complete)
           
 void setProviderFactory(IOProviderDescriptor factory)
          Assign an I/O provider factory to the configuration
 
Methods inherited from class eu.esdihumboldt.hale.ui.io.internal.WizardPageDecorator
canFlipToNextPage, createControl, equals, getControl, getDescription, getImage, getName, getNextPage, getPreviousPage, getShell, getTitle, hashCode, performHelp, setDescription, setImageDescriptor, setPreviousPage, setTitle, setVisible, setWizard, toString
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
getContainer, getDialogSettings, isCurrentPage
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getDialogFontName, getFont, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImportSelectSourcePage.SourcePage

public ImportSelectSourcePage.SourcePage(ImportSource<P> importSource,
                                         org.eclipse.swt.widgets.Composite parent,
                                         org.eclipse.core.runtime.content.IContentType initialContentType)
Create an import source page and add it to the ImportSelectSourcePage.sources list.

Parameters:
importSource - the corresponding import source
parent - the parent composite
initialContentType - the content type the import source page should be initialized with, may be null
Method Detail

getWizard

public W getWizard()
Specified by:
getWizard in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
getWizard in class WizardPageDecorator
See Also:
WizardPageDecorator.getWizard()

activate

public void activate()
Activate the source page. This will apply the stored content type, provider factory, messages and page completeness.


getFactories

public Collection<IOProviderDescriptor> getFactories()
Description copied from interface: ImportSource.SourceConfiguration
Get the available provider descriptors.

Specified by:
getFactories in interface ImportSource.SourceConfiguration<P extends ImportProvider>
Returns:
the available factories
See Also:
ImportSource.SourceConfiguration.getFactories()

setProviderFactory

public void setProviderFactory(IOProviderDescriptor factory)
Description copied from interface: ImportSource.SourceConfiguration
Assign an I/O provider factory to the configuration

Specified by:
setProviderFactory in interface ImportSource.SourceConfiguration<P extends ImportProvider>
Parameters:
factory - the provider descriptor to set
See Also:
ImportSource.SourceConfiguration.setProviderFactory(IOProviderDescriptor)

getProviderFactory

public IOProviderDescriptor getProviderFactory()
Description copied from interface: ImportSource.SourceConfiguration
Get the provider factory assigned to the configuration.

Specified by:
getProviderFactory in interface ImportSource.SourceConfiguration<P extends ImportProvider>
Returns:
the I/O provider factory
See Also:
ImportSource.SourceConfiguration.getProviderFactory()

setContentType

public void setContentType(org.eclipse.core.runtime.content.IContentType contentType)
Description copied from interface: ImportSource.SourceConfiguration
Assign a content type to the configuration

Specified by:
setContentType in interface ImportSource.SourceConfiguration<P extends ImportProvider>
Parameters:
contentType - the content type to set
See Also:
ImportSource.SourceConfiguration.setContentType(IContentType)

getErrorMessage

public String getErrorMessage()
Specified by:
getErrorMessage in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
getErrorMessage in class WizardPageDecorator
See Also:
WizardPageDecorator.getErrorMessage()

isPageComplete

public boolean isPageComplete()
Specified by:
isPageComplete in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
isPageComplete in class WizardPageDecorator
See Also:
WizardPageDecorator.isPageComplete()

getMessage

public String getMessage()
Specified by:
getMessage in interface org.eclipse.jface.dialogs.IDialogPage
Specified by:
getMessage in interface org.eclipse.jface.dialogs.IMessageProvider
Overrides:
getMessage in class WizardPageDecorator
See Also:
WizardPageDecorator.getMessage()

getMessageType

public int getMessageType()
Specified by:
getMessageType in interface org.eclipse.jface.dialogs.IMessageProvider
Overrides:
getMessageType in class WizardPageDecorator
See Also:
WizardPageDecorator.getMessageType()

setErrorMessage

public void setErrorMessage(String newMessage)
Overrides:
setErrorMessage in class WizardPageDecorator
See Also:
WizardPageDecorator.setErrorMessage(String)

setMessage

public void setMessage(String newMessage,
                       int newType)
Overrides:
setMessage in class WizardPageDecorator
See Also:
WizardPageDecorator.setMessage(String, int)

setPageComplete

public void setPageComplete(boolean complete)
Overrides:
setPageComplete in class WizardPageDecorator
See Also:
WizardPageDecorator.setPageComplete(boolean)

setMessage

public void setMessage(String newMessage)
Overrides:
setMessage in class WizardPageDecorator
See Also:
WizardPageDecorator.setMessage(String)

getContentType

public org.eclipse.core.runtime.content.IContentType getContentType()
Description copied from interface: ImportSource.SourceConfiguration
Get the content type assigned to the configuration

Specified by:
getContentType in interface ImportSource.SourceConfiguration<P extends ImportProvider>
Returns:
the content type, may be null
See Also:
ImportSource.SourceConfiguration.getContentType()

getImportSource

public ImportSource<P> getImportSource()
Returns:
the importSource

getIndex

public int getIndex()
Returns:
the index

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
dispose in class WizardPageDecorator
See Also:
WizardPageDecorator.dispose()

Humboldt Alignment Editor 2.5.0

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