|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.part.Page
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage
A property sheet page that provides a tabbed UI.
Field Summary | |
---|---|
protected IStructuredContentProvider |
tabListContentProvider
|
Constructor Summary | |
---|---|
TabbedPropertySheetPage(ITabbedPropertySheetPageContributor tabbedPropertySheetPageContributor)
create a new tabbed property sheet page. |
Method Summary | |
---|---|
void |
addTabSelectionListener(ITabSelectionListener listener)
Add a tab selection listener. |
void |
createControl(Composite parent)
Creates the SWT control for this page under the given parent control. |
void |
dispose()
Disposes of this page. |
Control |
getControl()
Returns the SWT control for this page. |
org.eclipse.ui.internal.views.properties.tabbed.view.Tab |
getCurrentTab()
Get the currently active tab. |
protected IStructuredContentProvider |
getTabListContentProvider()
Gets the tab list content provider for the contributor. |
TabbedPropertySheetWidgetFactory |
getWidgetFactory()
Get the widget factory. |
protected void |
handlePartActivated(IWorkbenchPart part)
Handle the part activated event. |
void |
labelProviderChanged(LabelProviderChangedEvent event)
Notifies this listener that the state of the label provider has changed in a way that affects the labels it computes. |
void |
refresh()
Refresh the currently active tab. |
void |
removeTabSelectionListener(ITabSelectionListener listener)
Remove a tab selection listener. |
void |
selectionChanged(IWorkbenchPart part,
ISelection selection)
Notifies this listener that the selection has changed. |
void |
setActionBars(IActionBars actionBars)
Allows the page to make contributions to the given action bars. |
void |
setFocus()
Asks this page to take focus within its pagebook view. |
protected void |
updateTabs(org.eclipse.ui.internal.views.properties.tabbed.view.TabDescriptor[] descriptors)
Update the current tabs to represent the given input object. |
Methods inherited from class org.eclipse.ui.part.Page |
---|
getSite, init, makeContributions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IStructuredContentProvider tabListContentProvider
Constructor Detail |
public TabbedPropertySheetPage(ITabbedPropertySheetPageContributor tabbedPropertySheetPageContributor)
tabbedPropertySheetPageContributor
- the tabbed property sheet page contributor.Method Detail |
protected void handlePartActivated(IWorkbenchPart part)
part
- the new activated part.public void createControl(Composite parent)
IPage
Clients should not call this method (the workbench calls this method when it needs to, which may be never).
createControl
in interface IPage
createControl
in class Page
IPage.createControl(org.eclipse.swt.widgets.Composite)
protected IStructuredContentProvider getTabListContentProvider()
public void dispose()
IPage
This is the last method called on the IPage
. Implementors should
clean up any resources associated with the page.
Note that there is no guarantee that createControl() has been called, so the control may never have been created.
dispose
in interface IPage
dispose
in class Page
IPage.dispose()
public Control getControl()
IPage
getControl
in interface IPage
getControl
in class Page
IPage.getControl()
public void setActionBars(IActionBars actionBars)
IPage
This method is automatically called shortly after
createControl
is called
setActionBars
in interface IPage
setActionBars
in class Page
IPage.setActionBars(org.eclipse.ui.IActionBars)
public void setFocus()
IPage
setFocus
in interface IPage
setFocus
in class Page
IPage.setFocus()
public void selectionChanged(IWorkbenchPart part, ISelection selection)
ISelectionListener
This method is called when the selection changes from one to a
non-null
value, but not when the selection changes to
null
. If there is a requirement to be notified in the latter
scenario, implement INullSelectionListener
. The event will
be posted through this method.
selectionChanged
in interface ISelectionListener
part
- the workbench part containing the selectionselection
- the current selection. This may be null
if INullSelectionListener
is implemented.ISelectionListener.selectionChanged(org.eclipse.ui.IWorkbenchPart,
org.eclipse.jface.viewers.ISelection)
protected void updateTabs(org.eclipse.ui.internal.views.properties.tabbed.view.TabDescriptor[] descriptors)
public void refresh()
public org.eclipse.ui.internal.views.properties.tabbed.view.Tab getCurrentTab()
public void addTabSelectionListener(ITabSelectionListener listener)
listener
- a tab selection listener.public void removeTabSelectionListener(ITabSelectionListener listener)
listener
- a tab selection listener.public TabbedPropertySheetWidgetFactory getWidgetFactory()
public void labelProviderChanged(LabelProviderChangedEvent event)
ILabelProviderListener
A typical response would be to refresh all labels by re-requesting them from the label provider.
labelProviderChanged
in interface ILabelProviderListener
event
- the label provider change eventILabelProviderListener.labelProviderChanged(org.eclipse.jface.viewers.LabelProviderChangedEvent)
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.