public abstract class AbstractPropertySection extends Object implements ISection
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 |
---|
AbstractPropertySection() |
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(Composite parent,
TabbedPropertySheetPage aTabbedPropertySheetPage)
Creates the controls for the section.
|
void |
dispose()
Dispose this section.
|
int |
getMinimumHeight()
Returns the minimum height needed by this section.
|
IWorkbenchPart |
getPart() |
ISelection |
getSelection()
Get the current workbench selection.
|
TabbedPropertySheetWidgetFactory |
getWidgetFactory()
Get the widget factory for the property sheet page.
|
void |
refresh()
Refresh the contents of the controls displayed in this section.
|
void |
setInput(IWorkbenchPart part,
ISelection selection)
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 TabbedPropertySheetWidgetFactory getWidgetFactory()
public ISelection getSelection()
public IWorkbenchPart getPart()
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage)
ISection
Clients should take advantage of the widget factory provided by the framework to achieve a common look between property sections.
createControls
in interface ISection
parent
- the parent composite for the section.aTabbedPropertySheetPage
- the tabbed property sheet page.ISection.createControls(org.eclipse.swt.widgets.Composite,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
public void setInput(IWorkbenchPart part, ISelection selection)
ISection
setInput
in interface ISection
part
- The active workench part.selection
- The active selection in the workbench part.ISection.setInput(org.eclipse.ui.IWorkbenchPart,
org.eclipse.jface.viewers.ISelection)
public void aboutToBeShown()
ISection
Since the controls are not visible, the section should wait for the refresh() before updating the section controls.
aboutToBeShown
in interface ISection
ISection.aboutToBeShown()
public void aboutToBeHidden()
ISection
aboutToBeHidden
in interface ISection
ISection.aboutToBeHidden()
public void dispose()
ISection
dispose
in interface ISection
ISection.dispose()
public int getMinimumHeight()
ISection
SWT.DEFAULT
indicates that no minimum height is defined.getMinimumHeight
in interface ISection
ISection.getMinimumHeight()
public boolean shouldUseExtraSpace()
ISection
shouldUseExtraSpace
in interface ISection
true
if this section would like extra height space.ISection.shouldUseExtraSpace()
public void refresh()
ISection
refresh
in interface ISection
ISection.refresh()
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.