Class TabContents
- java.lang.Object
-
- org.eclipse.ui.views.properties.tabbed.TabContents
-
public final class TabContents extends Object
A property tab is composed by one or more property sections and is used to categorize sections.- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description TabContents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaboutToBeHidden()Sends the lifecycle event to the page's sections.voidaboutToBeShown()Sends the lifecycle event to the page's sections.booleancontrolsHaveBeenCreated()Determine if the controls have been created.voidcreateControls(Composite parent, TabbedPropertySheetPage page)Creates page's sections controls.voiddispose()Dispose of page's sections controls.ISectiongetSectionAtIndex(int i)Retrieve the section at a numbered index.intgetSectionIndex(ISection section)Retrieve a numbered index for the section.ISection[]getSections()Retrieve the sections on the tab.voidrefresh()If controls have been created, refresh all sections on the page.voidsetInput(IWorkbenchPart part, ISelection selection)Sets page's sections input objects.voidsetSections(ISection[] sections)Set the sections for the tab.
-
-
-
Method Detail
-
getSectionIndex
public int getSectionIndex(ISection section)
Retrieve a numbered index for the section.- Parameters:
section- the section.- Returns:
- the section index.
-
getSectionAtIndex
public ISection getSectionAtIndex(int i)
Retrieve the section at a numbered index.- Parameters:
i- a numbered index.- Returns:
- the section.
-
getSections
public ISection[] getSections()
Retrieve the sections on the tab.- Returns:
- the sections on the tab.
-
createControls
public void createControls(Composite parent, TabbedPropertySheetPage page)
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
public void setInput(IWorkbenchPart part, ISelection selection)
Sets page's sections input objects.- Parameters:
part- The active workbench part.selection- The active selection in the workbench part.
-
setSections
public void setSections(ISection[] sections)
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:
trueif controls have been created.
-
refresh
public void refresh()
If controls have been created, refresh all sections on the page.
-
-