Class PreviewStringsWizardPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com.e1c.langtool.ui.generatestring.PreviewStringsWizardPage
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.dialogs.IPageChangedListener,org.eclipse.jface.wizard.IWizardPage
- Direct Known Subclasses:
V8ProjectPreviewStringsWizardPage
public class PreviewStringsWizardPage
extends org.eclipse.jface.wizard.WizardPage
implements org.eclipse.jface.dialogs.IPageChangedListener
The Preview Strings page for the "Translation strings generator" wizard
GenerateTranslationStringsWizard.-
Field Summary
FieldsFields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollectTranslationStrings(org.eclipse.core.runtime.IProgressMonitor monitor) Collects translation strings.voidcreateControl(org.eclipse.swt.widgets.Composite parent) voiddispose()protected intGets the maximum number of items in the preview list.voidpageChanged(org.eclipse.jface.dialogs.PageChangedEvent event) voidsetGenerator(TranslationStringsGenerator generator) protected booleanReturns whether this page's controls currently all contain valid values.Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, 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
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisibleMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Field Details
-
storageManager
-
-
Constructor Details
-
PreviewStringsWizardPage
public PreviewStringsWizardPage()
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createControlin interfaceorg.eclipse.jface.dialogs.IDialogPage
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
disposein classorg.eclipse.jface.dialogs.DialogPage
-
pageChanged
public void pageChanged(org.eclipse.jface.dialogs.PageChangedEvent event) - Specified by:
pageChangedin interfaceorg.eclipse.jface.dialogs.IPageChangedListener
-
getGenerator
- Returns:
- the generator
-
setGenerator
- Parameters:
generator- the generator to set
-
validatePage
protected boolean validatePage()Returns whether this page's controls currently all contain valid values.- Returns:
trueif all controls are valid, andfalseif at least one is invalid
-
collectTranslationStrings
protected void collectTranslationStrings(org.eclipse.core.runtime.IProgressMonitor monitor) Collects translation strings.- Parameters:
monitor- the progress monitor, cannot benull
-
getMaxItemsInList
protected int getMaxItemsInList()Gets the maximum number of items in the preview list.- Returns:
- the maximum number of items in the preview list
-