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)
ISectionClients should take advantage of the widget factory provided by the framework to achieve a common look between property sections.
createControls in interface ISectionparent - 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)
ISectionsetInput in interface ISectionpart - 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()
ISectionSince the controls are not visible, the section should wait for the refresh() before updating the section controls.
aboutToBeShown in interface ISectionISection.aboutToBeShown()public void aboutToBeHidden()
ISectionaboutToBeHidden in interface ISectionISection.aboutToBeHidden()public void dispose()
ISectiondispose in interface ISectionISection.dispose()public int getMinimumHeight()
ISectionSWT.DEFAULT indicates that no minimum height is defined.getMinimumHeight in interface ISectionISection.getMinimumHeight()public boolean shouldUseExtraSpace()
ISectionshouldUseExtraSpace in interface ISectiontrue if this section would like extra height space.ISection.shouldUseExtraSpace()public void refresh()
ISectionrefresh in interface ISectionISection.refresh()Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.