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

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

    ERROR, INFORMATION, NONE, WARNING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    collectTranslationStrings(org.eclipse.core.runtime.IProgressMonitor monitor)
    Collects translation strings.
    void
    createControl(org.eclipse.swt.widgets.Composite parent)
     
    void
     
     
    protected int
    Gets the maximum number of items in the preview list.
    void
    pageChanged(org.eclipse.jface.dialogs.PageChangedEvent event)
     
    void
     
    protected boolean
    Returns 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, 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

    Methods inherited from interface org.eclipse.jface.wizard.IWizardPage

    getMinimumPageSize
  • Field Details

  • Constructor Details

    • PreviewStringsWizardPage

      public PreviewStringsWizardPage()
  • Method Details

    • createControl

      public void createControl(org.eclipse.swt.widgets.Composite parent)
      Specified by:
      createControl in interface org.eclipse.jface.dialogs.IDialogPage
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.jface.dialogs.IDialogPage
      Overrides:
      dispose in class org.eclipse.jface.dialogs.DialogPage
    • pageChanged

      public void pageChanged(org.eclipse.jface.dialogs.PageChangedEvent event)
      Specified by:
      pageChanged in interface org.eclipse.jface.dialogs.IPageChangedListener
    • getGenerator

      public TranslationStringsGenerator getGenerator()
      Returns:
      the generator
    • setGenerator

      public void setGenerator(TranslationStringsGenerator generator)
      Parameters:
      generator - the generator to set
    • validatePage

      protected boolean validatePage()
      Returns whether this page's controls currently all contain valid values.
      Returns:
      true if all controls are valid, and false if at least one is invalid
    • collectTranslationStrings

      protected void collectTranslationStrings(org.eclipse.core.runtime.IProgressMonitor monitor)
      Collects translation strings.
      Parameters:
      monitor - the progress monitor, cannot be null
    • getMaxItemsInList

      protected int getMaxItemsInList()
      Gets the maximum number of items in the preview list.
      Returns:
      the maximum number of items in the preview list