|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.ui.views.properties.tabbed.AbstractPropertySection
An abstract implementation of a section in a tab in the tabbed property sheet page.
| Field Summary | |
|---|---|
static int |
STANDARD_LABEL_WIDTH
The standard label width when labels for sections line up on the left hand side of the composite. |
| Constructor Summary | |
|---|---|
AbstractPropertySection()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int STANDARD_LABEL_WIDTH
| Constructor Detail |
public AbstractPropertySection()
| Method Detail |
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)
ISection
setInput 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()
ISection
aboutToBeHidden in interface ISectionISection.aboutToBeHidden()public void dispose()
ISection
dispose in interface ISectionISection.dispose()public int getMinimumHeight()
ISectionSWT.DEFAULT indicates that no minimum height is defined.
getMinimumHeight in interface ISectionISection.getMinimumHeight()public boolean shouldUseExtraSpace()
ISection
shouldUseExtraSpace in interface ISectiontrue if this section would like extra height space.ISection.shouldUseExtraSpace()public void refresh()
ISection
refresh in interface ISectionISection.refresh()
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.