|
||||||||||
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
pl.edu.agh.cast.importer.wizard.page.AbstractImportWizardPage
pl.edu.agh.cast.importer.wizard.page.FileParamsSelectionPage
public class FileParamsSelectionPage
Page of the import wizard, which serves for initial selection of all basic information that are required by the import process, such as selection of the data file format, domain model and encoding.
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
FileParamsSelectionPage()
The default constructor. |
Method Summary | |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
Map<String,String> |
getAllSupportedFileExtensions()
Retrieves all file extensions supported by all tokenizers, mapped to their tokenizer's identifiers. |
Charset |
getFileCharset()
Retrieves the charset for selected file, on the basis of selected file format (tokenizer). |
IImportTokenizer |
getTokenizer()
|
String |
getTokenizerDescription(String tokenizerId)
Retrieves description of a tokenizer of the specified identifier. |
void |
initPage()
initPage() is invoked before showing page. |
protected boolean |
isComplete()
|
RawTabularData |
loadPreview(Charset fileEncoding,
List<ITokenizerOption> tokenizerOptions,
int previewRowsLimit)
Loads a data preview by importing a given amount of rows ( PREVIEW_ROWS_LIMIT ) of a specified data
file, with use of a tokenizer of a specified identifier and its options. |
void |
refreshImportData()
refrestImportData() is invoked before page leaving. |
void |
setDomainModelComboData(org.eclipse.swt.widgets.Combo domainModelCombo)
Sets data and items to display for the domain model combo on InitImportPageComposite . |
void |
setFormatComboData(org.eclipse.swt.widgets.Combo fileFormatCombo)
Sets data and items to display for the file format combo on InitImportPageComposite . |
void |
setSelectedEncoding(Charset charset)
Sets the selected encoding. |
Methods inherited from class pl.edu.agh.cast.importer.wizard.page.AbstractImportWizardPage |
---|
canFlipToNextPage, dispose, getImportProcess, getImportWizard, getNextPage, widgetModified |
Methods inherited from class org.eclipse.jface.wizard.WizardPage |
---|
getContainer, getDialogSettings, getImage, getName, 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, 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 |
---|
public FileParamsSelectionPage()
Method Detail |
---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)
protected boolean isComplete()
isComplete
in class AbstractImportWizardPage
public void initPage()
initPage
in class AbstractImportWizardPage
AbstractImportWizardPage.initPage()
public void refreshImportData()
refreshImportData
in class AbstractImportWizardPage
AbstractImportWizardPage.refreshImportData()
public RawTabularData loadPreview(Charset fileEncoding, List<ITokenizerOption> tokenizerOptions, int previewRowsLimit)
PREVIEW_ROWS_LIMIT
) of a specified data
file, with use of a tokenizer of a specified identifier and its options.
TODO: now the method loads a preview of only a single tabular data; future versions must include tabs for every tokenized tabular data
fileEncoding
- the file selected file encodingtokenizerOptions
- the options for the tokenizerpreviewRowsLimit
- the limit of rows previewed
public void setDomainModelComboData(org.eclipse.swt.widgets.Combo domainModelCombo)
InitImportPageComposite
.
domainModelCombo
- the domain model combopublic void setFormatComboData(org.eclipse.swt.widgets.Combo fileFormatCombo)
InitImportPageComposite
.
fileFormatCombo
- the file format combopublic String getTokenizerDescription(String tokenizerId)
tokenizerId
- the tokenizer id
public Map<String,String> getAllSupportedFileExtensions()
public Charset getFileCharset()
public void setSelectedEncoding(Charset charset)
charset
- the selected encodingpublic IImportTokenizer getTokenizer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |