Class ViewModule
java.lang.Object
org.eclipse.tracecompass.incubator.scripting.ui.views.ViewModule
Scripting module that allow to interact with views using EASE in the Trace
Compass UI.
Example scripts using views can be found here:
- A scripted time graph data provider with script-defined entries and arrows, in javascript
- A basic analysis, building an state system and showing its data in a time graph, in python
- Author:
- Geneviève Bastien
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
openHistogramChartView
(ITmfTreeXYDataProvider<ITmfTreeDataModel> dataProvider) Open a histogram chart for a scripted XY data providervoid
openScatterChartView
(ITmfTreeXYDataProvider<ITmfTreeDataModel> dataProvider) Open a scatter chart for a scripted XY data providervoid
openTimeGraphView
(ITimeGraphDataProvider<TimeGraphEntryModel> dataProvider) Open a time graph view with a data providervoid
openXYChartView
(ITmfTreeXYDataProvider<ITmfTreeDataModel> dataProvider) Open a XY chart for a scripted data providervoid
Open any view in Trace Compass, using its view ID, with an optional secondary ID.
-
Field Details
-
MODULE_ID
Module identifier.- See Also:
-
-
Constructor Details
-
ViewModule
public ViewModule()
-
-
Method Details
-
openTimeGraphView
Open a time graph view with a data provider- Parameters:
dataProvider
- The data provider used to populate the view
-
showView
Open any view in Trace Compass, using its view ID, with an optional secondary ID. For many views that are common for many analyses, for example, the table views, scatter views, statistics, flame chart/graph, the secondary ID is the ID of the analysis. This value can be found by selecting the analysis that will be the source of the view and looking in the 'Properties' view for the ID property. For example, to open a table view for the LTTng-UST CallStack (Incubator) analysis, the follow call can be makeshowView(org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.SegmentStoreTableView.ID, "org.eclipse.tracecompass.incubator.callstack.core.lttng.ust");
- Parameters:
viewId
- The ID of the view to displaysecondaryId
- The secondary ID, if required.
-
openXYChartView
Open a XY chart for a scripted data provider- Parameters:
dataProvider
- The data provider used to populate the view
-
openHistogramChartView
Open a histogram chart for a scripted XY data provider- Parameters:
dataProvider
- The data provider used to populate the view
-
openScatterChartView
Open a scatter chart for a scripted XY data provider- Parameters:
dataProvider
- The data provider used to populate the view
-