Class AbstractSection<ModelType extends IModel>

java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
org.libreoffice.ide.eclipse.core.editors.utils.AbstractSection<ModelType>
Type Parameters:
ModelType - the type of the model object for the section
All Implemented Interfaces:
org.eclipse.ui.forms.IFormPart, IModelDataListener
Direct Known Subclasses:
IntegrationSection, LocalizedSection, MirrorsSection

public abstract class AbstractSection<ModelType extends IModel> extends org.eclipse.ui.forms.SectionPart implements IModelDataListener
Abstract section class providing mechanisms to suspend the dirty state change notifications.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractSection(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.editor.FormPage page, int style)
    The SectionPart constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    abstract void
    Load the non-localized data from the model into the fields.
    void
    Marks the editor as non dirty.
    void
    Marks the editor as saved.
    void
     

    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

    • AbstractSection

      public AbstractSection(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.editor.FormPage page, int style)
      The SectionPart constructor.
      Parameters:
      parent - the parent composite
      page - the form page to use
      style - the SectionPart style
  • Method Details

    • getModel

      public ModelType getModel()
      Returns:
      the data model for the section
    • setModel

      public void setModel(ModelType model)
      Parameters:
      model - the new data model for the section
    • isDirty

      public boolean isDirty()
      Specified by:
      isDirty in interface org.eclipse.ui.forms.IFormPart
      Overrides:
      isDirty in class org.eclipse.ui.forms.AbstractFormPart
    • modelSaved

      public void modelSaved()
      Marks the editor as saved.
      Specified by:
      modelSaved in interface IModelDataListener
    • modelChanged

      public void modelChanged()
      Marks the editor as non dirty.
      Specified by:
      modelChanged in interface IModelDataListener
    • loadData

      public abstract void loadData()
      Load the non-localized data from the model into the fields.