Class LocalizedSection<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>
org.libreoffice.ide.eclipse.core.editors.utils.LocalizedSection<ModelType>
- Type Parameters:
ModelType- the type of the model object for the section
- All Implemented Interfaces:
org.eclipse.ui.forms.IFormPart,ILocaleListener,IModelDataListener
- Direct Known Subclasses:
GeneralSection,LicenseSection,PublisherSection,ReleaseNotesSection
public abstract class LocalizedSection<ModelType extends IModel>
extends AbstractSection<ModelType>
implements ILocaleListener
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalizedSection(org.eclipse.swt.widgets.Composite pParent, org.eclipse.ui.forms.editor.FormPage pPage, int pStyle) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcreateControls(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent) Create the localized controls in the given parent.voidselectLocale(Locale locale) The locale selection has changed.Methods inherited from class org.libreoffice.ide.eclipse.core.editors.utils.AbstractSection
getModel, isDirty, loadData, 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, setFormInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.libreoffice.ide.eclipse.core.editors.utils.ILocaleListener
addLocale, deleteLocale
-
Field Details
-
mCurrentLocale
-
-
Constructor Details
-
LocalizedSection
public LocalizedSection(org.eclipse.swt.widgets.Composite pParent, org.eclipse.ui.forms.editor.FormPage pPage, int pStyle) - Parameters:
pParent- the parent composite where to add the sectionpPage- the page page of the sectionpStyle- a bit-or of the styles defined in Section class
-
-
Method Details
-
createControls
protected abstract void createControls(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent) Create the localized controls in the given parent.- Parameters:
pToolkit- the toolkit to use for the controls creationpParent- the parent to use for the new controls.
-
selectLocale
The locale selection has changed.- Specified by:
selectLocalein interfaceILocaleListener- Parameters:
locale- the new locale to use.
-