public class EEFLegacySection extends AbstractEEFSection
ISection
to an AbstractEEFSection
.STANDARD_LABEL_WIDTH
Constructor and Description |
---|
EEFLegacySection(org.eclipse.ui.views.properties.tabbed.ISection legacySection)
The constructor.
|
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 eefTabbedPropertySheetPage)
Creates the controls for the section.
|
void |
dispose()
Dispose this section.
|
boolean |
equals(java.lang.Object obj) |
int |
getMinimumHeight()
Returns the minimum height needed by this section.
|
int |
hashCode() |
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.
|
java.lang.String |
toString() |
public EEFLegacySection(org.eclipse.ui.views.properties.tabbed.ISection legacySection)
legacySection
- A legacy sectionpublic void createControls(org.eclipse.swt.widgets.Composite parent, EEFTabbedPropertySheetPage eefTabbedPropertySheetPage)
Clients should take advantage of the widget factory provided by the framework to achieve a common look between property sections.
createControls
in interface IEEFSection
createControls
in class AbstractEEFSection
parent
- the parent composite for the section.eefTabbedPropertySheetPage
- the tabbed property sheet page.AbstractEEFSection.createControls(org.eclipse.swt.widgets.Composite,
org.eclipse.eef.properties.ui.api.EEFTabbedPropertySheetPage)
public void aboutToBeHidden()
aboutToBeHidden
in interface IEEFSection
aboutToBeHidden
in class AbstractEEFSection
AbstractEEFSection.aboutToBeHidden()
public void dispose()
dispose
in interface IEEFSection
dispose
in class AbstractEEFSection
AbstractEEFSection.dispose()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
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
aboutToBeShown
in class AbstractEEFSection
AbstractEEFSection.aboutToBeShown()
public int getMinimumHeight()
SWT.DEFAULT
indicates that no
minimum height is defined.getMinimumHeight
in interface IEEFSection
getMinimumHeight
in class AbstractEEFSection
AbstractEEFSection.getMinimumHeight()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void refresh()
refresh
in interface IEEFSection
refresh
in class AbstractEEFSection
AbstractEEFSection.refresh()
public void setInput(org.eclipse.ui.IWorkbenchPart workbenchPart, org.eclipse.jface.viewers.ISelection currentSelection)
setInput
in interface IEEFSection
setInput
in class AbstractEEFSection
workbenchPart
- The active workbench part.currentSelection
- The active selection in the workbench part.AbstractEEFSection.setInput(org.eclipse.ui.IWorkbenchPart,
org.eclipse.jface.viewers.ISelection)
public boolean shouldUseExtraSpace()
shouldUseExtraSpace
in interface IEEFSection
shouldUseExtraSpace
in class AbstractEEFSection
true
if this section would like extra height space.AbstractEEFSection.shouldUseExtraSpace()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()