Class BaseDataProviderTimeGraphView
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
org.eclipse.tracecompass.tmf.ui.views.timegraph.AbstractTimeGraphView
org.eclipse.tracecompass.tmf.ui.views.timegraph.BaseDataProviderTimeGraphView
- All Implemented Interfaces:
EventListener,org.eclipse.core.resources.IResourceChangeListener,org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,ITmfComponent,ITmfAllowMultiple,ITmfFilterableControl,ITmfPinnable,ITmfTimeAligned,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:
ExampleTimeGraphDataProviderView,FlameChartView,TmfStateSystemExplorer
AbstractTimeGraphView for views with data providers.- Since:
- 4.0
- Author:
- Loic Prieur-Drevon
-
Field Summary
Fields inherited from class org.eclipse.tracecompass.tmf.ui.views.TmfView
VIEW_ID_SEPARATORFields inherited from interface org.eclipse.core.resources.IResourceChangeListener
PROPERTY_EVENT_MASKFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionBaseDataProviderTimeGraphView(String id, TimeGraphPresentationProvider pres, String providerId) Constructs a time graph view that contains a time graph viewer. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePartControl(org.eclipse.swt.widgets.Composite parent) static ITimeGraphDataProvider<? extends TimeGraphEntryModel>getProvider(TimeGraphEntry entry) Get theITimeGraphDataProviderfrom aTimeGraphEntry's parent.static @NonNull ITmfTracegetTrace(TimeGraphEntry entry) Get theITmfTracefrom aTimeGraphEntry's parent.Methods inherited from class org.eclipse.tracecompass.tmf.ui.views.timegraph.AbstractTimeGraphView
addPaintListener, dispose, filterUpdated, getAdapter, getAvailableWidth, getFilterAction, getTimeGraphViewer, getTimeViewAlignmentInfo, getTrace, isDirty, markerEventSourceUpdated, performAlign, regexFilterApplied, resourceChanged, restartZoomThread, selectionChanged, selectionRangeUpdated, setFocus, setLegendProvider, setPinned, traceClosed, traceOpened, traceSelected, traceUpdated, updateTimeFormat, windowRangeUpdatedMethods inherited from class org.eclipse.tracecompass.tmf.ui.views.TmfView
broadcast, broadcastAsync, getName, getParentComposite, isPinnedMethods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationDataMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Constructor Details
-
BaseDataProviderTimeGraphView
public BaseDataProviderTimeGraphView(String id, TimeGraphPresentationProvider pres, String providerId) Constructs a time graph view that contains a time graph viewer. By default, the view uses a single default column in the name space that shows the time graph entry name. To use multiple columns and/or customized label texts, the subclass constructor must callAbstractTimeGraphView.setTreeColumns(String[])and/orAbstractTimeGraphView.setTreeLabelProvider(TreeLabelProvider).- Parameters:
id- The id of the viewpres- The presentation providerproviderId- the ID for theITimeGraphDataProviderto use to populate this view
-
-
Method Details
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
createPartControlin classAbstractTimeGraphView
-
getTrace
Get theITmfTracefrom aTimeGraphEntry's parent.- Parameters:
entry- queriedTimeGraphEntry.- Returns:
- the
ITmfTrace - Since:
- 3.3
-
getProvider
public static ITimeGraphDataProvider<? extends TimeGraphEntryModel> getProvider(TimeGraphEntry entry) Get theITimeGraphDataProviderfrom aTimeGraphEntry's parent.- Parameters:
entry- queriedTimeGraphEntry.- Returns:
- the
ITimeGraphDataProvider - Since:
- 3.3
-