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
ConstructorsConstructorDescriptionAbstractSection(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.editor.FormPage page, int style) The SectionPart constructor. -
Method Summary
Methods inherited from class org.eclipse.ui.forms.SectionPart
expansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocusMethods inherited from class org.eclipse.ui.forms.AbstractFormPart
commit, dispose, getManagedForm, initialize, isStale, markDirty, markStale, refresh, setFormInput
-
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 compositepage- the form page to usestyle- the SectionPart style
-
-
Method Details
-
getModel
- Returns:
- the data model for the section
-
setModel
- Parameters:
model- the new data model for the section
-
isDirty
public boolean isDirty()- Specified by:
isDirtyin interfaceorg.eclipse.ui.forms.IFormPart- Overrides:
isDirtyin classorg.eclipse.ui.forms.AbstractFormPart
-
modelSaved
public void modelSaved()Marks the editor as saved.- Specified by:
modelSavedin interfaceIModelDataListener
-
modelChanged
public void modelChanged()Marks the editor as non dirty.- Specified by:
modelChangedin interfaceIModelDataListener
-
loadData
public abstract void loadData()Load the non-localized data from the model into the fields.
-