tmf: Fix Select Traces command does not refresh trace type

The trace type for an experiment trace in the Properties view did not
appear until restart.

Change-Id: I426403cca68ad650637c9d625198ce80948fb977
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/24883
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Linuxtools: Circumvent M7 SWTBot test problems.

Where possible, use alternatives to ContextMenuHelper when
the workbench's active selection is needed (EBZ #433014).
Also perform minor cleanup on some tests.

Change-Id: I23834cdc4b89df87b6e6d5666bce8b6f646a6cc0
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25236
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
TMF: Refresh only the supplementary files for the current trace

The method has been moved to the TmfTraceManager
Also corrected a typo in a constant name.

Change-Id: Ieaa83c525defad09499458ab48a45ef14b2baa0a
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/23939
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
Use Tycho 0.21.0-SNAPSHOT to fix Bug 431793

Change-Id: I8b34eac4933f2a92f239c810bffcf86556aae015
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25003
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
TMF: Add a unit test helper to execute protected methods

This new class contains a method to call the protected executeAnalysis of
TmfAbstractAnalysisModule to be able to test the analysis execution simply,
without having to go through an Eclipse job and needing different threads.

Change-Id: I8043f956d405b4bf7f81787e028f67601a4c3fa0
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/24897
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf: Fix IOException drag and dropping trace on open experiment

The editors must be closed before deleting supplementary files.

Change-Id: I538c77dd1da3b2ccfb99986ce225e9b6a2c46f7a
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25213
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
lttng: Add script to copy the project settings from tmf.core

This will help keep consistent project setttings across plugins.

Change-Id: I20ebb8efdecf0c93d02cdb0f192fca387173b3b4
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25092
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
lttng: Harmonize the compiler settings among all plugins

Change-Id: I6136f619223781be3acd5b52ec4f4f47a0b3e5ce
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25093
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Add non-null annotations to TmfTraceClosedSignal

Small change to fix #418028, until we move the whole package to
NonNullByDefault.

Change-Id: I2533604e84a484d9c9315bcb6cb6a9eaeb21f2fe
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25237
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Fix NullPointerException in ControlFlowView

This could happen if the state system is disposed while the BuildThread
is running.

Change-Id: I30f443eca7ef809f4abacc4ddc5e155576c500d5
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25376
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
lttng-tmf: Update dependecies to new tmf.ctf feature

Change-Id: I3a9e8d544cfbc988704d15e891cdd92e736bebb6
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25344
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
tmf: Temporarily disable hanging tests

Change-Id: I88abd2b8a4e411a361592fb8e6239b942e164286
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25432
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
tmf: Fix deadlock in analysis module

Deadlock occurred when renaming a trace while its analyses are ongoing.

The refresh of supplementary folders is now done outside of the analysis
synchronization lock.

It is not necessary to trigger the refresh when cancel() is called,
since it will be triggered when the analysis execution is completed
(whether it was cancelled or not).

Change-Id: Id65fe9d57fadab1d17096d7e20bb15f43d30f1c7
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25323
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
TMF: Add an XML model factory and classes for read-only state system components

Factory for XML model element used in a read-only context. The state attributes
will not be added to the state system.

Change-Id: Ibfb5a35ecbc723ecc12c47c6461a389d5290e918
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/23160
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
tmf: Experiment performance benchmark

Change-Id: Id1994474b2cf479e00d5482e1aa2c170e5ce4ba2
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/24885
Tested-by: Hudson CI
tmf: Wait until shell is active in swtbot test

Change-Id: Ia7a4a14048ae919717cf17ea3ec095ea212c7b1e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25385
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
lttng: Work around UI thread sleeping forever on Mac in tests

bug: 415992
Change-Id: I43ff1961eb02c9978a9650d39fcbff9d018e9ccd
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25443
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
lttng: Add filtering textbox to the event selection composites

Change-Id: I9de3eb026841b4fb7a85ba14305c569e7e9a24aa
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25019
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
[tmf] NPE when renaming a trace with no trace type when inside an experiment

Bug: 433161
Change-Id: If56a288d9b4d16df9dd827a4b016e4970eff2cc2
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25330
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Systemtap: More Probe & Function view fixes.

-Obtain static probes with a call to "stap --dump-probe-types" rather
than with a configuration file.
-Improve layout & organization of entries in the Probe Alias View.
-Correct the way probe groups are added to scripts (EBZ#431260).
-Create SharedParser to share stap -vp1 dumps among Probe & Function
parsers.
-Restore "View Definition" feature for Probe Alias view.
-Clean & improve "View Definition"'s means of searching for script
contents.
-Replace DefinitionAction with DefinitionHandler, and migrate plugin
implementation from Actions to Commands.
-Resolve EBZ #432768.
-Format .systemtap.ui.ide/plugin.xml.
-Update code completion for probes & its associated tests.

Change-Id: I24a8c89ea9fdd372efdff13f18d8bcebf5957d0b
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/23878
Reviewed-by: Sami Wagiaalla <swagiaal@redhat.com>
Tested-by: Sami Wagiaalla <swagiaal@redhat.com>