Class TabContents
java.lang.Object
org.eclipse.ui.views.properties.tabbed.TabContents
A property tab is composed by one or more property sections and is used to
categorize sections.
- Since:
- 3.4
- Author:
- Anthony Hunter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sends the lifecycle event to the page's sections.void
Sends the lifecycle event to the page's sections.boolean
Determine if the controls have been created.void
createControls
(Composite parent, TabbedPropertySheetPage page) Creates page's sections controls.void
dispose()
Dispose of page's sections controls.getSectionAtIndex
(int i) Retrieve the section at a numbered index.int
getSectionIndex
(ISection section) Retrieve a numbered index for the section.ISection[]
Retrieve the sections on the tab.void
refresh()
If controls have been created, refresh all sections on the page.void
setInput
(IWorkbenchPart part, ISelection selection) Sets page's sections input objects.void
setSections
(ISection[] sections) Set the sections for the tab.
-
Constructor Details
-
TabContents
public TabContents()
-
-
Method Details
-
getSectionIndex
Retrieve a numbered index for the section.- Parameters:
section
- the section.- Returns:
- the section index.
-
getSectionAtIndex
Retrieve the section at a numbered index.- Parameters:
i
- a numbered index.- Returns:
- the section.
-
getSections
Retrieve the sections on the tab.- Returns:
- the sections on the tab.
-
createControls
Creates page's sections controls.- Parameters:
parent
- the parent compositepage
- the page
-
dispose
public void dispose()Dispose of page's sections controls. -
aboutToBeShown
public void aboutToBeShown()Sends the lifecycle event to the page's sections. -
aboutToBeHidden
public void aboutToBeHidden()Sends the lifecycle event to the page's sections. -
setInput
Sets page's sections input objects.- Parameters:
part
- The active workbench part.selection
- The active selection in the workbench part.
-
setSections
Set the sections for the tab.- Parameters:
sections
- the sections for the tab.
-
controlsHaveBeenCreated
public boolean controlsHaveBeenCreated()Determine if the controls have been created.- Returns:
true
if controls have been created.
-
refresh
public void refresh()If controls have been created, refresh all sections on the page.
-