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

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
                  extended by org.openoffice.ide.eclipse.core.editors.main.LicenseSection
All Implemented Interfaces:
org.eclipse.ui.forms.IFormPart, ILocaleListener

public class LicenseSection
extends LocalizedSection

License section class.

Author:
cbosdonnat

Field Summary
 
Fields inherited from class org.openoffice.ide.eclipse.core.editors.main.LocalizedSection
mCurrentLocale
 
Constructor Summary
LicenseSection(org.eclipse.swt.widgets.Composite pParent, PackageOverviewFormPage pPage, org.eclipse.core.resources.IProject pProject)
           
 
Method Summary
 void addLocale(java.util.Locale pLocale)
          A locale has been added.
protected  void createControls(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent)
          Create the localized controls in the given parent.
 void deleteLocale(java.util.Locale pLocale)
          A locale has been deleted.
 void loadData()
          Load the data from the model into the non-localized controls.
 void selectLocale(java.util.Locale pLocale)
          The locale selection has changed.
 
Methods inherited from class org.openoffice.ide.eclipse.core.editors.main.AbstractOverviewSection
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
 

Constructor Detail

LicenseSection

public LicenseSection(org.eclipse.swt.widgets.Composite pParent,
                      PackageOverviewFormPage pPage,
                      org.eclipse.core.resources.IProject pProject)
Parameters:
pParent - the parent composite where to add the section
pPage - the parent page
pProject - the project containing the description.xml file
Method Detail

loadData

public void loadData()
Load the data from the model into the non-localized controls.

Specified by:
loadData in class AbstractOverviewSection

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:
createControls in class LocalizedSection
Parameters:
pToolkit - the toolkit to use for the controls creation
pParent - the parent to use for the new controls.

addLocale

public void addLocale(java.util.Locale pLocale)
A locale has been added.

Parameters:
pLocale - the added locale

deleteLocale

public void deleteLocale(java.util.Locale pLocale)
A locale has been deleted.

Parameters:
pLocale - the deleted locale

selectLocale

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

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