Class LicenseSection
java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
org.libreoffice.ide.eclipse.core.editors.utils.AbstractSection<ModelType>
org.libreoffice.ide.eclipse.core.editors.utils.LocalizedSection<DescriptionModel>
org.libreoffice.ide.eclipse.core.editors.description.LicenseSection
- All Implemented Interfaces:
org.eclipse.ui.forms.IFormPart,ILocaleListener,IModelDataListener
License section class.
-
Field Summary
Fields inherited from class org.libreoffice.ide.eclipse.core.editors.utils.LocalizedSection
mCurrentLocale -
Constructor Summary
ConstructorsConstructorDescriptionLicenseSection(org.eclipse.swt.widgets.Composite parent, DescriptionFormPage page, org.eclipse.core.resources.IProject project) -
Method Summary
Modifier and TypeMethodDescriptionvoidA locale has been added.protected voidcreateControls(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent) Create the localized controls in the given parent.voiddeleteLocale(Locale locale) A locale has been deleted.voidloadData()Load the data from the model into the non-localized controls.voidselectLocale(Locale locale) The locale selection has changed.Methods inherited from class org.libreoffice.ide.eclipse.core.editors.utils.AbstractSection
getModel, isDirty, modelChanged, modelSaved, setModelMethods 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
-
LicenseSection
public LicenseSection(org.eclipse.swt.widgets.Composite parent, DescriptionFormPage page, org.eclipse.core.resources.IProject project) - Parameters:
parent- the parent composite where to add the sectionpage- the parent pageproject- the project containing the description.xml file
-
-
Method Details
-
loadData
public void loadData()Load the data from the model into the non-localized controls.- Specified by:
loadDatain classAbstractSection<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:
createControlsin classLocalizedSection<DescriptionModel>- Parameters:
pToolkit- the toolkit to use for the controls creationpParent- the parent to use for the new controls.
-
addLocale
A locale has been added.- Parameters:
locale- the added locale
-
deleteLocale
A locale has been deleted.- Parameters:
locale- the deleted locale
-
selectLocale
The locale selection has changed.- Specified by:
selectLocalein interfaceILocaleListener- Overrides:
selectLocalein classLocalizedSection<DescriptionModel>- Parameters:
locale- the new locale to use.
-