public class EEFTabbedPropertySheetPage extends org.eclipse.ui.part.Page implements org.eclipse.ui.views.properties.IPropertySheetPage, IEEFFormContainer
Constructor and Description |
---|
EEFTabbedPropertySheetPage(IEEFTabbedPropertySheetPageContributor contributor)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTabSelectionListener(IEEFTabSelectionListener listener)
Add a tab selection listener.
|
void |
createControl(org.eclipse.swt.widgets.Composite parent) |
void |
dispose() |
protected void |
disposeTabs(java.util.Collection<EEFTabContents> tabs)
Disposes the TabContents objects passed to this method.
|
java.util.List<IEEFTabDescriptor> |
getActiveTabs()
Returns the list of currently active tabs.
|
IEEFTabbedPropertySheetPageContributor |
getContributor()
Return the contributor.
|
org.eclipse.swt.widgets.Control |
getControl() |
EEFTabContents |
getCurrentTab()
Return the currentTab.
|
org.eclipse.ui.forms.widgets.Form |
getForm()
Return the form.
|
IEEFTabDescriptor |
getSelectedTab()
Returns the currently selected tab.
|
org.eclipse.swt.widgets.Shell |
getShell()
Returns the shell used by the container.
|
EEFWidgetFactory |
getWidgetFactory()
Return the widgetFactory.
|
boolean |
isRenderingInProgress()
Indicates whether or not we are inside the rendering/refresh pahse of the page's lifecycle.
|
void |
refresh()
Refresh the currently active tab.
|
void |
refreshPage()
Refresh the page.
|
void |
removeTabSelectionListener(IEEFTabSelectionListener listener)
Remove a tab selection listener.
|
void |
resizeScrolledComposite()
Resize the scrolled composite.
|
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection) |
void |
setActionBars(org.eclipse.ui.IActionBars actionBars) |
void |
setFocus() |
void |
setSelectedTab(java.lang.String id)
Set the currently selected tab to be that of the provided tab id.
|
protected void |
updateTabs(java.util.List<IEEFTabDescriptor> descriptors)
Update the current tabs to represent the given input object.
|
public EEFTabbedPropertySheetPage(IEEFTabbedPropertySheetPageContributor contributor)
contributor
- the contributor.public void createControl(org.eclipse.swt.widgets.Composite parent)
createControl
in interface org.eclipse.ui.part.IPage
createControl
in class org.eclipse.ui.part.Page
IPage.createControl(org.eclipse.swt.widgets.Composite)
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener
ISelectionListener.selectionChanged(org.eclipse.ui.IWorkbenchPart,
org.eclipse.jface.viewers.ISelection)
public void refreshPage()
refreshPage
in interface IEEFFormContainer
IEEFFormContainer.refreshPage()
public boolean isRenderingInProgress()
isRenderingInProgress
in interface IEEFFormContainer
true
if we are inside the rendering/refresh pahse of the page's lifecycle.protected void updateTabs(java.util.List<IEEFTabDescriptor> descriptors)
descriptors
- The tab descriptors.protected void disposeTabs(java.util.Collection<EEFTabContents> tabs)
tabs
- The list of tabspublic void addTabSelectionListener(IEEFTabSelectionListener listener)
listener
- a tab selection listener.public void removeTabSelectionListener(IEEFTabSelectionListener listener)
listener
- a tab selection listener.public void resizeScrolledComposite()
public void setSelectedTab(java.lang.String id)
id
- The string id of the tab to select.public void dispose()
dispose
in interface org.eclipse.ui.part.IPage
dispose
in class org.eclipse.ui.part.Page
IPage.dispose()
public java.util.List<IEEFTabDescriptor> getActiveTabs()
public org.eclipse.swt.widgets.Control getControl()
getControl
in interface org.eclipse.ui.part.IPage
getControl
in class org.eclipse.ui.part.Page
IPage.getControl()
public EEFTabContents getCurrentTab()
public IEEFTabDescriptor getSelectedTab()
null
if there is no tab selected.public void setActionBars(org.eclipse.ui.IActionBars actionBars)
setActionBars
in interface org.eclipse.ui.part.IPage
setActionBars
in class org.eclipse.ui.part.Page
IPage.setActionBars(org.eclipse.ui.IActionBars)
public void setFocus()
setFocus
in interface org.eclipse.ui.part.IPage
setFocus
in class org.eclipse.ui.part.Page
IPage.setFocus()
public EEFWidgetFactory getWidgetFactory()
getWidgetFactory
in interface IEEFFormContainer
public void refresh()
public IEEFTabbedPropertySheetPageContributor getContributor()
public org.eclipse.ui.forms.widgets.Form getForm()
getForm
in interface IEEFFormContainer
public org.eclipse.swt.widgets.Shell getShell()
getShell
in interface IEEFFormContainer
IEEFFormContainer.getShell()