Class TmfView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.tracecompass.tmf.ui.views.TmfView
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,ITmfComponent,org.eclipse.ui.IPersistable,org.eclipse.ui.IViewPart,org.eclipse.ui.IWorkbenchPart,org.eclipse.ui.IWorkbenchPart2,org.eclipse.ui.IWorkbenchPart3,org.eclipse.ui.part.IWorkbenchPartOrientation
- Direct Known Subclasses:
AbstractSegmentsStatisticsView,AbstractSegmentStoreDensityView,AbstractSegmentStoreTableView,AbstractTimeGraphView,ColorsView,FilterView,HistogramView,TimeChartView,TmfChartView,TmfSynchronizationView
Basic abstract TMF view class implementation.
It registers any sub class to the signal manager for receiving and sending TMF signals.
Subclasses may optionally implement the
It registers any sub class to the signal manager for receiving and sending TMF signals.
Subclasses may optionally implement the
ITmfTimeAligned,
ITmfAllowMultiple and ITmfPinnable interfaces to enable those
features.- Author:
- Francois Chouinard
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe separator used between the primary and secondary id of a view id.Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPropagate a signal to all the interested listeners in the same thread of execution.voidbroadcastAsync(TmfSignal signal) Propagate a signal to all the interested listeners in a separate thread.voidcreatePartControl(org.eclipse.swt.widgets.Composite parent) voiddispose()Disposes this view and de-registers itself from the signal managergetName()org.eclipse.swt.widgets.CompositeReturns the parent control of the viewbooleanisPinned()Returns whether the view is pinned.Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationDataMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setFocus, setPartProperty, showBusyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus
-
Field Details
-
VIEW_ID_SEPARATOR
The separator used between the primary and secondary id of a view id.- Since:
- 3.2
- See Also:
-
-
Constructor Details
-
TmfView
Constructor. Creates a TMF view and registers to the signal manager.- Parameters:
viewName- A view name
-
-
Method Details
-
dispose
public void dispose()Disposes this view and de-registers itself from the signal manager- Specified by:
disposein interfaceITmfComponent- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-
getName
- Specified by:
getNamein interfaceITmfComponent- Returns:
- the component ID (display name)
-
broadcast
Description copied from interface:ITmfComponentPropagate a signal to all the interested listeners in the same thread of execution.- Specified by:
broadcastin interfaceITmfComponent- Parameters:
signal- the signal to broadcast
-
broadcastAsync
Description copied from interface:ITmfComponentPropagate a signal to all the interested listeners in a separate thread.- Specified by:
broadcastAsyncin interfaceITmfComponent- Parameters:
signal- the signal to broadcast
-
isPinned
public boolean isPinned()Returns whether the view is pinned.- Returns:
- if the view is pinned
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart
-
getParentComposite
public org.eclipse.swt.widgets.Composite getParentComposite()Returns the parent control of the view- Returns:
- the parent control
- Since:
- 1.0
-