Package org.dawnsci.conversion.ui.pages
Class TomoConvertPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.dawb.common.ui.wizard.ResourceChoosePage
org.dawnsci.conversion.ui.pages.TomoConvertPage
- All Implemented Interfaces:
IConversionWizardPage,org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage
-
Field Summary
Fields inherited from class org.dawb.common.ui.wizard.ResourceChoosePage
overwriteFields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateContentAfterFileChoose(org.eclipse.swt.widgets.Composite container) voidcreateContentBeforeFileChoose(org.eclipse.swt.widgets.Composite container) voiddispose()getActiveDatasets(IConversionContext context, org.eclipse.core.runtime.IProgressMonitor monitor) All datasets of the right rank in the conversion file.protected voidorg.eclipse.jface.wizard.IWizardPagebooleanisOpen()Should open the converted file after the conversion has happened.booleanprotected voidChecks the path is ok.voidsetContext(IConversionContext context) Methods inherited from class org.dawb.common.ui.wizard.ResourceChoosePage
createControl, createFileChooser, getAbsoluteFilePath, getExpression, getFileExtension, getFileLabel, getIResource, getPath, getSelectedFiles, getSelectedPaths, getSourcePath, handleFileBrowse, handleResourceBrowse, isDirectory, isNewFile, isOverwrite, isPathEditable, setBrowseToExternalOnly, setButtonsEnabled, setDirectory, setFileChoosingEnabled, setFileExtension, setFileLabel, setNewFile, setOverwrite, setOverwriteVisible, setPageComplete, setPath, setPathEditable, setSelectedFilesMethods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getPreviousPage, getShell, getWizard, isCurrentPage, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPreviousPage, setTitle, setWizard, toStringMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisibleMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
canFlipToNextPage, getName, getPreviousPage, getWizard, setPreviousPage, setWizard
-
Constructor Details
-
TomoConvertPage
public TomoConvertPage()
-
-
Method Details
-
createContentBeforeFileChoose
public void createContentBeforeFileChoose(org.eclipse.swt.widgets.Composite container) - Overrides:
createContentBeforeFileChoosein classResourceChoosePage- Parameters:
container- with a 4-column grid layout
-
createContentAfterFileChoose
protected void createContentAfterFileChoose(org.eclipse.swt.widgets.Composite container) - Overrides:
createContentAfterFileChoosein classResourceChoosePage- Parameters:
container- with a 4-column grid layout
-
isOpen
public boolean isOpen()Description copied from interface:IConversionWizardPageShould open the converted file after the conversion has happened.- Specified by:
isOpenin interfaceIConversionWizardPage- Returns:
-
pathChanged
protected void pathChanged()Checks the path is ok.- Overrides:
pathChangedin classResourceChoosePage
-
isPageComplete
public boolean isPageComplete()- Specified by:
isPageCompletein interfaceorg.eclipse.jface.wizard.IWizardPage- Overrides:
isPageCompletein classResourceChoosePage
-
getContext
- Specified by:
getContextin interfaceIConversionWizardPage- Returns:
- the context, including any modifications (which includes path changes and the setting of user objects)
-
setContext
- Specified by:
setContextin interfaceIConversionWizardPage- Parameters:
context-
-
getNamesOfSupportedRank
- Throws:
Exception
-
getActiveDatasets
protected List<String> getActiveDatasets(IConversionContext context, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception Description copied from class:ResourceChoosePageAll datasets of the right rank in the conversion file.- Overrides:
getActiveDatasetsin classResourceChoosePage- Returns:
- Throws:
Exception
-
getNextPage
public org.eclipse.jface.wizard.IWizardPage getNextPage()- Specified by:
getNextPagein interfaceorg.eclipse.jface.wizard.IWizardPage- Overrides:
getNextPagein classorg.eclipse.jface.wizard.WizardPage
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
disposein classorg.eclipse.jface.dialogs.DialogPage
-