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,IModelChangedListener
- Direct Known Subclasses:
IntegrationSection,LocalizedSection,MirrorsSection
public abstract class AbstractSection<ModelType extends IModel> extends org.eclipse.ui.forms.SectionPart implements IModelChangedListener
Abstract section class providing mechanisms to suspend the dirty state change notifications.
-
-
Constructor Summary
Constructors Constructor Description AbstractSection(org.eclipse.swt.widgets.Composite pParent, org.eclipse.ui.forms.editor.FormPage pPage, int pStyle)The SectionPart constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ModelTypegetModel()booleanisDirty()abstract voidloadData()Load the non-localized data from the model into the fields.voidmodelChanged()Marks the editor as non dirty.voidmodelSaved()Marks the editor as saved.voidsetModel(ModelType pModel)-
Methods inherited from class org.eclipse.ui.forms.SectionPart
expansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocus
-
-
-
-
Method Detail
-
getModel
public ModelType getModel()
- Returns:
- the data model for the section
-
setModel
public void setModel(ModelType pModel)
- Parameters:
pModel- 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 interfaceIModelChangedListener
-
modelChanged
public void modelChanged()
Marks the editor as non dirty.- Specified by:
modelChangedin interfaceIModelChangedListener
-
loadData
public abstract void loadData()
Load the non-localized data from the model into the fields.
-
-