public class TreePropertySection extends org.eclipse.ui.views.properties.tabbed.AbstractPropertySection implements IUpdateableListener
Section
that displays the
properties for a TreeComposite
.
The properties are displayed in a JFace TableViewer
. Each row in the
table corresponds to an Entry
in one of the tree's
DataComponent
s or data nodes.
STANDARD_LABEL_WIDTH
component
Constructor and Description |
---|
TreePropertySection()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
aboutToBeHidden()
Restores the layout properties stored in
aboutToBeShown() and
changed in resizePropertyView() . |
void |
aboutToBeShown()
Because this
Section must alter the layout behavior of the
containing Eclipse RCP View in order to properly lay out the
tableViewer and related Controls , this method must
store any layout properties for parent Composites (e.g.,
scrollComposite and scrollCompositeClient ) that will be
changed in resizePropertyView() . |
void |
createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
This operation draws the (initial) controls in the properties view based
on the input.
|
void |
dispose()
Disposes of the
section and its contained Widgets and clears
references to any class variables. |
void |
refresh()
Refreshes any widgets required for the current input for this property
section.
|
void |
setInput(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
This operation sets the current input displayed in the table of
properties.
|
void |
update(IUpdateable component)
Listens for updates from the
tree . |
public void createControls(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
createControls
in interface org.eclipse.ui.views.properties.tabbed.ISection
createControls
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
public void setInput(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
isAdaptive
if the input is an
AdaptiveTreeComposite
.setInput
in interface org.eclipse.ui.views.properties.tabbed.ISection
setInput
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
public void refresh()
refresh
in interface org.eclipse.ui.views.properties.tabbed.ISection
refresh
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
public void aboutToBeShown()
Section
must alter the layout behavior of the
containing Eclipse RCP View in order to properly lay out the
tableViewer
and related Controls
, this method must
store any layout properties for parent Composites
(e.g.,
scrollComposite
and scrollCompositeClient
) that will be
changed in resizePropertyView()
. These layout properties must be
restored in aboutToBeHidden()
.aboutToBeShown
in interface org.eclipse.ui.views.properties.tabbed.ISection
aboutToBeShown
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
public void aboutToBeHidden()
aboutToBeShown()
and
changed in resizePropertyView()
.aboutToBeHidden
in interface org.eclipse.ui.views.properties.tabbed.ISection
aboutToBeHidden
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
public void dispose()
section
and its contained Widgets and clears
references to any class variables.dispose
in interface org.eclipse.ui.views.properties.tabbed.ISection
dispose
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
public void update(IUpdateable component)
tree
. If the tree is an
AdaptiveTreeComposite
, then this method updates the type
selection widget's selection.update
in interface IUpdateableListener
component
- The component that was updated in some way.