org.openoffice.ide.eclipse.core.editors.main
Class LocalizedSection

java.lang.Object
  extended by org.eclipse.ui.forms.AbstractFormPart
      extended by org.eclipse.ui.forms.SectionPart
          extended by org.openoffice.ide.eclipse.core.editors.main.AbstractOverviewSection
              extended by org.openoffice.ide.eclipse.core.editors.main.LocalizedSection
All Implemented Interfaces:
org.eclipse.ui.forms.IFormPart, ILocaleListener
Direct Known Subclasses:
GeneralSection, LicenseSection, PublisherSection, ReleaseNotesSection

public abstract class LocalizedSection
extends AbstractOverviewSection
implements ILocaleListener

Author:
Cédric Bosdonnat

Field Summary
protected  java.util.Locale mCurrentLocale
           
 
Constructor Summary
LocalizedSection(org.eclipse.swt.widgets.Composite pParent, org.eclipse.ui.forms.editor.FormPage pPage, int pStyle)
           
 
Method Summary
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.
 void selectLocale(java.util.Locale pLocale)
          The locale selection has changed.
 
Methods inherited from class org.openoffice.ide.eclipse.core.editors.main.AbstractOverviewSection
loadData, markDirty, setNotifyChanges
 
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, isDirty, isStale, markStale, refresh, setFormInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openoffice.ide.eclipse.core.editors.main.ILocaleListener
addLocale, deleteLocale
 

Field Detail

mCurrentLocale

protected java.util.Locale mCurrentLocale
Constructor Detail

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 section
pPage - the page page of the section
pStyle - a bit-or of the styles defined in Section class
Method Detail

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 creation
pParent - the parent to use for the new controls.

selectLocale

public void selectLocale(java.util.Locale pLocale)
The locale selection has changed.

Specified by:
selectLocale in interface ILocaleListener
Parameters:
pLocale - the new locale to use.