W
- the concrete I/O wizard typeP
- the IOProvider
type used in the wizardpublic class CharsetConfigurationPage<P extends IOProvider,W extends IOWizard<P>> extends AbstractConfigurationPage<P,W>
Modifier and Type | Class and Description |
---|---|
static class |
CharsetConfigurationPage.Mode
Configuration pages modes.
|
Modifier | Constructor and Description |
---|---|
|
CharsetConfigurationPage()
Default constructor.
|
protected |
CharsetConfigurationPage(CharsetConfigurationPage.Mode mode)
Create a character set configuration page with a specific mode.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createContent(org.eclipse.swt.widgets.Composite page)
Create the page content
|
protected void |
detectCharset(InputStream input)
Try to detect the character encoding.
|
void |
disable()
Disable the configuration page
|
void |
enable()
Enable the configuration page
|
protected void |
onShowPage(boolean firstShow)
Called when this page is shown
|
boolean |
updateConfiguration(IOProvider provider)
Update the configuration (of the I/O provider)
|
loadPreSelection
createControl, dispose, getHelpContext, getWizard, performHelp
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setMessage, setVisible
public CharsetConfigurationPage()
protected CharsetConfigurationPage(CharsetConfigurationPage.Mode mode)
mode
- the modepublic void enable()
AbstractConfigurationPage
enable
in class AbstractConfigurationPage<P extends IOProvider,W extends IOWizard<P>>
public void disable()
AbstractConfigurationPage
disable
in class AbstractConfigurationPage<P extends IOProvider,W extends IOWizard<P>>
protected void onShowPage(boolean firstShow)
HaleWizardPage
onShowPage
in class HaleWizardPage<W extends IOWizard<P>>
firstShow
- specifies if it is the first time the page is shown
since its creationpublic boolean updateConfiguration(IOProvider provider)
IOWizardPage
updateConfiguration
in class IOWizardPage<P extends IOProvider,W extends IOWizard<P>>
provider
- the I/O provider to updateprotected void createContent(org.eclipse.swt.widgets.Composite page)
HaleWizardPage
createContent
in class HaleWizardPage<W extends IOWizard<P>>
page
- the page composite, implementors may assign a custom layout
to this compositeprotected void detectCharset(InputStream input) throws IOException
input
- the input streamIOException
- if the resource cannot be readBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a