From 5d5a8c32ebe66fb965b57202b9bfcadc350fae77 Mon Sep 17 00:00:00 2001 From: Kaveh Shahedi Date: Mon, 24 Mar 2025 11:55:43 -0400 Subject: [PATCH] tmf: Introduce "MIME" data provider type Followed by introducing the configurable reports data providers, this commit proposes a new data provider type called "MIME", which is related to different types of configurable MIME reports, such as images, HTML, text, pdf, excel, etc. [Added] A new data provider type called "MIME" Signed-off-by: Kaveh Shahedi --- .../dataprovider/IDataProviderDescriptor.java | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/dataprovider/IDataProviderDescriptor.java b/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/dataprovider/IDataProviderDescriptor.java index 150673ea06..1d0f884e76 100644 --- a/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/dataprovider/IDataProviderDescriptor.java +++ b/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/dataprovider/IDataProviderDescriptor.java @@ -29,14 +29,13 @@ public interface IDataProviderDescriptor { /** - * The type of the data provider. The purpose of the type to indicate - * to the clients the type of viewer to visualize or whether they can - * share a common x-axis (e.g. time). + * The type of the data provider. The purpose of the type to indicate to the + * clients the type of viewer to visualize or whether they can share a + * common x-axis (e.g. time). * * The following types share common x-axis/time axis: * - * {@link #TREE_TIME_XY} - * {@link #TIME_GRAPH} + * {@link #TREE_TIME_XY} {@link #TIME_GRAPH} * * @author Loic Prieur-Drevon * @author Bernd Hufmann @@ -47,22 +46,33 @@ public enum ProviderType { */ TABLE, /** - * A provider for a tree, whose entries have XY series. The x-series is time. + * A provider for a tree, whose entries have XY series. The x-series is + * time. */ TREE_TIME_XY, /** - * A provider for a Time Graph model, which has entries with a start and end - * time, each entry has a series of states, arrows link from one series to - * another + * A provider for a Time Graph model, which has entries with a start and + * end time, each entry has a series of states, arrows link from one + * series to another */ TIME_GRAPH, /** * A provider for a data tree, which has entries (rows) and columns. + * * @since 6.1 */ DATA_TREE, /** - * A provider with no data. Can be used for grouping purposes and/or as data provider configurator. + * A provider for a MIME data provider, which can be an image, audio, + * video, text, pdf, etc. + * + * @since 10.3 + */ + MIME, + /** + * A provider with no data. Can be used for grouping purposes and/or as + * data provider configurator. + * * @since 9.5 */ NONE @@ -110,7 +120,7 @@ public enum ProviderType { * Gets the input configuration used to create this data provider. * * @return the {@link ITmfConfiguration} configuration use to create this - * data provider, or null if not applicable + * data provider, or null if not applicable * @since 9.5 */ default @Nullable ITmfConfiguration getConfiguration() {