public class ImportWizardPageTable
extends org.eclipse.jface.wizard.WizardPage
ImportData#getJdbcTables()()
. The selected one will be assigned
via ImportWizardModel.setSelectedJdbcTable(String)
along with the
detected columns for this table using ImportWizardModel.setWizardColumns(List)
and its preview data ImportWizardModel.setPreviewData(List)
.Constructor and Description |
---|
ImportWizardPageTable(ImportWizard wizardImport)
Creates a new instance of this page and sets its title and description.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
Creates the design of this page along with the appropriate listeners.
|
protected int |
getNumberOfColumns(java.lang.String table)
Gets the number of columns for given table
This uses the JDBC connection
ImportWizardModel.getJdbcConnection() to determine the number of
columns for given table. |
protected long |
getNumberOfRows(java.lang.String table)
Gets the number of rows for given table
This uses the JDBC connection
ImportWizardModel.getJdbcConnection() to determine the number of
rows for given table. |
protected void |
readPreview()
Reads in the preview data for currently selected table
If this can be performed successful, the preview data will be made
available for the following pages by
ImportWizardModel.setPreviewData(List) . |
void |
setVisible(boolean visible)
Applies previously detected tables to
tableViewer . |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
public ImportWizardPageTable(ImportWizard wizardImport)
wizardImport
- Reference to wizard containing this pagepublic void createControl(org.eclipse.swt.widgets.Composite parent)
parent
- public void setVisible(boolean visible)
tableViewer
.setVisible
in interface org.eclipse.jface.dialogs.IDialogPage
setVisible
in class org.eclipse.jface.dialogs.DialogPage
visible
- protected int getNumberOfColumns(java.lang.String table)
ImportWizardModel.getJdbcConnection()
to determine the number of
columns for given table.table
- Table number of rows should be returned forprotected long getNumberOfRows(java.lang.String table)
ImportWizardModel.getJdbcConnection()
to determine the number of
rows for given table.table
- Table number of rows should be returned forprotected void readPreview()
ImportWizardModel.setPreviewData(List)
. Otherwise an appropriate
error message is set.