Package org.dawnsci.conversion.ui
Class ConversionChoicePage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.dawb.common.ui.wizard.ResourceChoosePage
org.dawnsci.conversion.ui.ConversionChoicePage
- All Implemented Interfaces:
IConversionWizardPage,org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage
-
Field Summary
FieldsFields inherited from class org.dawb.common.ui.wizard.ResourceChoosePage
overwriteFields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConversionChoicePage(String pageName, IConversionService service) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateContentAfterFileChoose(org.eclipse.swt.widgets.Composite container) protected voidcreateContentBeforeFileChoose(org.eclipse.swt.widgets.Composite container) voiddispose()org.eclipse.swt.graphics.ImagegetImage(IConversionScheme scheme) If there is an image in this directory called.png we return it here. Overridden so that filter can be applied.booleanisOpen()Should open the converted file after the conversion has happened.booleanprotected voidCall to updatevoidsetContext(IConversionContext context) Methods inherited from class org.dawb.common.ui.wizard.ResourceChoosePage
createControl, createFileChooser, getAbsoluteFilePath, getActiveDatasets, getExpression, getFileExtension, getFileLabel, getIResource, getPath, 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, getNextPage, 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, getNextPage, getPreviousPage, getWizard, setPreviousPage, setWizard
-
Field Details
-
EXT
-
-
Constructor Details
-
ConversionChoicePage
-
-
Method Details
-
createContentBeforeFileChoose
protected void createContentBeforeFileChoose(org.eclipse.swt.widgets.Composite container) - Overrides:
createContentBeforeFileChoosein classResourceChoosePage- Parameters:
container- with a 4-column grid layout
-
getSelectedFiles
Overridden so that filter can be applied.- Overrides:
getSelectedFilesin classResourceChoosePage- Returns:
-
createContentAfterFileChoose
protected void createContentAfterFileChoose(org.eclipse.swt.widgets.Composite container) - Overrides:
createContentAfterFileChoosein classResourceChoosePage- Parameters:
container- with a 4-column grid layout
-
getImage
If there is an image in this directory called.png we return it here. - Returns:
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
disposein classorg.eclipse.jface.dialogs.DialogPage
-
pathChanged
protected void pathChanged()Description copied from class:ResourceChoosePageCall to update- Overrides:
pathChangedin classResourceChoosePage
-
getContext
- Specified by:
getContextin interfaceIConversionWizardPage- Returns:
- the context, including any modifications (which includes path changes and the setting of user objects)
-
getScheme
-
setContext
- Specified by:
setContextin interfaceIConversionWizardPage- Parameters:
context-
-
isPageComplete
public boolean isPageComplete()- Specified by:
isPageCompletein interfaceorg.eclipse.jface.wizard.IWizardPage- Overrides:
isPageCompletein classResourceChoosePage
-
isOpen
public boolean isOpen()Description copied from interface:IConversionWizardPageShould open the converted file after the conversion has happened.- Specified by:
isOpenin interfaceIConversionWizardPage- Returns:
-