tmf: Introduce ITmfEventTableColumns and its extension point
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 8 Aug 2014 18:04:55 +0000 (14:04 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 20 Aug 2014 20:13:42 +0000 (16:13 -0400)
commit99d7adc627665377b84f0efcfc5fba06963071e6
treeaa249f685944fcdf8e3d9962ce824aca5e4b227d
parent24b7c9801b3edf02a1786ac2dc4261227ed488d5
tmf: Introduce ITmfEventTableColumns and its extension point

Instead of accidentally specifying the whole event table, trace types
can now only define the columns they want. This allows more (most)
trace types to use the default TmfEventsTable, which in turn allows more
trace types to be "aggregated" together in one table when put together
in the same experiment.

The previous "eventsTableType" extension remains there,
 1) for compatibility purposes, but also
 2) for trace types that do very specific things with their event
    table and need to override the default one (ie, GdbTrace).

If a trace type provides both extension points, we'll first try to give
it its event table (ignoring the ITmfEventTableColumns info), and if we
can't because we're within an experiment for instance, then we'll fallback
to just use the columns.

Change-Id: Ie0c7fc9af62dc79aa3add8a605e02455e0df30c4
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/31407
Tested-by: Hudson CI
24 files changed:
org.eclipse.linuxtools.btf.ui/plugin.xml
org.eclipse.linuxtools.btf.ui/src/org/eclipse/linuxtools/btf/ui/BtfEventTableColumns.java [new file with mode: 0644]
org.eclipse.linuxtools.btf.ui/src/org/eclipse/linuxtools/btf/ui/BtfEventViewer.java [deleted file]
org.eclipse.linuxtools.gdbtrace.ui/plugin.xml
org.eclipse.linuxtools.gdbtrace.ui/src/org/eclipse/linuxtools/internal/gdbtrace/ui/views/events/GdbEventTableColumns.java [new file with mode: 0644]
org.eclipse.linuxtools.gdbtrace.ui/src/org/eclipse/linuxtools/internal/gdbtrace/ui/views/events/GdbEventsTable.java
org.eclipse.linuxtools.lttng2.kernel.ui/plugin.xml
org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/viewers/events/LTTng2EventsTable.java [deleted file]
org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/viewers/events/LttngEventTableColumns.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.pcap.ui/plugin.xml
org.eclipse.linuxtools.tmf.pcap.ui/src/org/eclipse/linuxtools/internal/tmf/pcap/ui/editor/PcapEventTableColumns.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.pcap.ui/src/org/eclipse/linuxtools/internal/tmf/pcap/ui/editor/PcapEventsTable.java [deleted file]
org.eclipse.linuxtools.tmf.ui.tests/plugin.xml
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/project/model/TraceAndExperimentTypeTest.java
org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/tests/experiment/type/TmfEventsTableExperimentStub.java [deleted file]
org.eclipse.linuxtools.tmf.ui/schema/org.eclipse.linuxtools.tmf.ui.tracetypeui.exsd
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/parsers/custom/CustomEventTableColumns.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/parsers/custom/CustomEventsTable.java [deleted file]
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/parsers/wizards/CustomTxtParserOutputWizardPage.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/parsers/wizards/CustomXmlParserOutputWizardPage.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/editors/TmfEventsEditor.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/TmfTraceTypeUIUtils.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/columns/ITmfEventTableColumns.java [new file with mode: 0644]
This page took 0.043458 seconds and 5 git commands to generate.