public abstract class AbstractEEFSection extends java.lang.Object implements IEEFSection
IEEFSection
.Modifier and Type | Field and Description |
---|---|
static int |
STANDARD_LABEL_WIDTH
The standard label width when labels for sections line up on the left hand side of the composite.
|
Constructor and Description |
---|
AbstractEEFSection() |
Modifier and Type | Method and Description |
---|---|
void |
aboutToBeHidden()
Notifies the section that its controls are about to be hidden.
|
void |
aboutToBeShown()
Notifies the section that its controls are about to be shown.
|
void |
createControls(org.eclipse.swt.widgets.Composite parent,
EEFTabbedPropertySheetPage aTabbedPropertySheetPage)
Creates the controls for the section.
|
void |
dispose()
Dispose this section.
|
int |
getMinimumHeight()
Returns the minimum height needed by this section.
|
void |
refresh()
Refresh the contents of the controls displayed in this section.
|
void |
setInput(org.eclipse.ui.IWorkbenchPart workbenchPart,
org.eclipse.jface.viewers.ISelection currentSelection)
Notifies the section that the workbench selection has changed.
|
boolean |
shouldUseExtraSpace()
Determine whether this section would like extra height space in case there is some left.
|
public static final int STANDARD_LABEL_WIDTH
public void createControls(org.eclipse.swt.widgets.Composite parent, EEFTabbedPropertySheetPage aTabbedPropertySheetPage)
Clients should take advantage of the widget factory provided by the framework to achieve a common look between property sections.
createControls
in interface IEEFSection
parent
- the parent composite for the section.aTabbedPropertySheetPage
- the tabbed property sheet page.IEEFSection.createControls(org.eclipse.swt.widgets.Composite,
org.eclipse.eef.properties.ui.api.EEFTabbedPropertySheetPage)
public void setInput(org.eclipse.ui.IWorkbenchPart workbenchPart, org.eclipse.jface.viewers.ISelection currentSelection)
setInput
in interface IEEFSection
workbenchPart
- The active workbench part.currentSelection
- The active selection in the workbench part.IEEFSection.setInput(org.eclipse.ui.IWorkbenchPart,
org.eclipse.jface.viewers.ISelection)
public void aboutToBeShown()
Since the controls are not visible, the section should wait for the refresh() before updating the section controls.
aboutToBeShown
in interface IEEFSection
IEEFSection.aboutToBeShown()
public void aboutToBeHidden()
aboutToBeHidden
in interface IEEFSection
IEEFSection.aboutToBeHidden()
public void dispose()
dispose
in interface IEEFSection
IEEFSection.dispose()
public int getMinimumHeight()
SWT.DEFAULT
indicates that no
minimum height is defined.getMinimumHeight
in interface IEEFSection
IEEFSection.getMinimumHeight()
public boolean shouldUseExtraSpace()
shouldUseExtraSpace
in interface IEEFSection
true
if this section would like extra height space.IEEFSection.shouldUseExtraSpace()
public void refresh()
refresh
in interface IEEFSection
IEEFSection.refresh()