Class ReleaseNotesSection

java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
All Implemented Interfaces:
org.eclipse.ui.forms.IFormPart, ILocaleListener, IModelDataListener

public class ReleaseNotesSection extends LocalizedSection<DescriptionModel> implements ILocaleListener
Section displaying the release notes part of the descriptions.xml file.
  • Field Summary

    Fields inherited from class org.libreoffice.ide.eclipse.core.editors.utils.LocalizedSection

    mCurrentLocale
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReleaseNotesSection(org.eclipse.swt.widgets.Composite parent, DescriptionFormPage page)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addLocale(Locale locale)
    A locale has been added.
    protected void
    createControls(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent)
    Create the localized controls in the given parent.
    void
    A locale has been deleted.
    void
    Load the non-localized data from the model into the fields.
    void
    The locale selection has changed.

    Methods inherited from class org.libreoffice.ide.eclipse.core.editors.utils.AbstractSection

    getModel, isDirty, modelChanged, modelSaved, setModel

    Methods inherited from class org.eclipse.ui.forms.SectionPart

    expansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocus

    Methods inherited from class org.eclipse.ui.forms.AbstractFormPart

    commit, dispose, getManagedForm, initialize, isStale, markDirty, markStale, refresh, setFormInput

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReleaseNotesSection

      public ReleaseNotesSection(org.eclipse.swt.widgets.Composite parent, DescriptionFormPage page)
      Parameters:
      parent - the parent composite where to add the section
      page - the parent page
  • Method Details

    • loadData

      public void loadData()
      Load the non-localized data from the model into the fields.
      Specified by:
      loadData in class AbstractSection<DescriptionModel>
    • createControls

      protected void createControls(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent)
      Create the localized controls in the given parent.
      Specified by:
      createControls in class LocalizedSection<DescriptionModel>
      Parameters:
      pToolkit - the toolkit to use for the controls creation
      pParent - the parent to use for the new controls.
    • addLocale

      public void addLocale(Locale locale)
      A locale has been added.
      Specified by:
      addLocale in interface ILocaleListener
      Parameters:
      locale - the added locale
    • deleteLocale

      public void deleteLocale(Locale locale)
      A locale has been deleted.
      Specified by:
      deleteLocale in interface ILocaleListener
      Parameters:
      locale - the deleted locale
    • selectLocale

      public void selectLocale(Locale locale)
      The locale selection has changed.
      Specified by:
      selectLocale in interface ILocaleListener
      Overrides:
      selectLocale in class LocalizedSection<DescriptionModel>
      Parameters:
      locale - the new locale to use.