Systemtap: Remove non-SWTChart graphs.

Remove all non-SWTChart implementations of graphs,
as they have been replaced and are no longer used.

Change-Id: I4c83aa96d86ae13b0d7d30ee361bd032ae273185
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/21888
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
tmf: Move the Statistics tests to the analysis API

Also, the TmfLostEventsStatisticsTest was not even run by default,
let's enable it!

Change-Id: I7585691432e136cebc87f659c167fb696030c68c
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/21789
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Transition custom parsers to the new location

If a user has some custom parsers defined in their workspace, and
they upgrade past 1b7d4a9, we can still look in the old location
so that they do not have to re-create the parsers manually.

Change-Id: Idd1c5f92f58d925be7494c75b8d1b668f487c119
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/21651
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
lttng: Migrate LTTng-UST CallStack to the analysis framework

Reworked the tests a bit for less copy-paste.

Change-Id: Ibd8587dfd41464e9f5e54fbaa3f6dd22cfabadfe
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/21788
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
IP-Clean: Genevieve Bastien <gbastien+lttng@versatic.net>
systemtap: Remove duplicated preference pages.

DataTablePreferencePage and GraphPreferencePage were in two bundles and
needlessly made some constants exported. 

Change-Id: Icc0b2ecdf552c0e48f0cccd5dbab2d3ca04b9d3c
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/21900
Tested-by: Hudson CI
Reviewed-by: Andrew Ferrazzutti <aferrazz@redhat.com>
IP-Clean: Andrew Ferrazzutti <aferrazz@redhat.com>
Tested-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Revert "tmf: Remove legacy import wizard"

This reverts commit 38b5d28eb185cdee37a452d312f9ca91a2c7af2f.

Change-Id: I4874e4a9347532df16eae1599d25b4faece0a998
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/21830
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Systemtap: Add missing licences & remove GraphCanvas.

Change-Id: Ibf40ad8a183f216f36f00c22f2226b1084587a22
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/21905
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
tmf: Rework trace import wizard

- Use standard directory and file trees from the base import resource
wizard. This fixes the problem of UI freezes in the previous
implementation when setting the checked state of a large file system
tree. Instead of having on single tree for directories and files there
are 2 trees side-by-side, one for directories and one for the files of
the highlighted directory.

- Introduce TraceFileSystemElement class for the tree viewers
This class extends FileSystemElement that is used in the standard
tree viewers of base import wizard class and it supports lazy
loading of the children elements.

- Only import directories as traces if they are valid directory
traces. This avoids directories to be imported when they are selected
in the tree. Right now only CTF traces are considered for that. A
generic solution needs to implemented for that.

- Don't try to validate a trace when changing the selection state
and a trace type is selected. The validation of traces can be very
long if many files and directories are selected and we don't want
to do that for each selection change. The trace type validation
is now only done after pressing the finish button.

- Directories are validated first using trace types for directories
By doing that, valid directory traces are not considered for file
trace types

- Support for auto detection of trace types
When this option is selected the wizard tries to detect automatically
the trace type. For CTF traces (directories) this is working well.
For file traces additional code is needed to detect the valid trace
type.

- Possibly long validation and import operation can now be cancelled.

- New checkbox to import unrecognized traces or to omit them
During auto detection it might happen that a trace type is not found
for a given file. This new checkbox allows the use to import the
unrecognized traces or to omit them. This checkbox value is persisted
in the dialog settings and loaded when opening the wizard afterwards.

- Trace type selection combo box has now sorted entries

Change-Id: I4920ad1d1de40e7665f1394549d3ff945b91d870
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/21831
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
Systemtap: Column name shifting for Graphing menu.

Allow users to "shift" column names up or down in the
vertical list of column names in the Graphing menu.
This feature is added to make it simpler to rearrange
column names when a capturing group is added between
existing groups.

Change-Id: I6bea0e5741da0232c9a2b14542aba87e91c7b291
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/20782
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
systemtap: Drop unused classes.

Constants classes that are not used and create dep cycles are bad.

Change-Id: Ic7631053def303d821b87da10b2352b5e8a43da4
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/21930
systemtap: Retire systemtapgui bundle.

It contained only 2 preference pages that are easily moved to the ide
bundle.

Change-Id: Ib97a7f0234fc4aa799dc047c258c6bbedea931a9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/21934
Tested-by: Hudson CI
Systemtap: Cleanup & warning/style fixes.

Fix more warnings reported by SonarQube & Eclipse.

Change-Id: I040d76c7c8947cb610b3bc1d651fdf28489848e9
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/21918
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
Systemtap: Warn when about to overrun a script.

Running a new instance of a running script terminates the
old one. If a user tries to run a script in this way,
a warning dialog now appears to ask the user if they
want to terminate the old run, rather than terminating
it automatically (See EBZ #394999).

Change-Id: I1f8798fe7ce964fa1e584e9cd285a213d69bed77
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/20895
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
tmf: support for renaming, overwriting or skipping during import

If a trace with a given name already exists in the target project
and the checkbox "Overwrite existing trace without warning" is not
checked, then a dialog box will be opened so that the user can
specify if he wants to rename, overwrite or skip the trace. The user
also has the option to apply this for all the imported traces, for
example "Rename all". For the renaming case the import operation will
automatically add a number as suffix to the trace name, for example
(2). This is similar to how it is done for drag and drop or
"Open Trace File/Directory" command in the RCP.

Change-Id: I316752fb7a76f6f448958b147e212af9a1ee2bcb
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/21832
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Add TextTrace abstract class with trace validation status

Change-Id: I1e027b4ee4e9581bcee2df99edaf7fde7cc9ee12
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/21833
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Systemtap: Fix/improve data filter UI.

Make the following changes to DataGrid's filter UI:

-Add names to filters when they are shown in the "remove
filters" menu, and disable that menu when there are no
filters.

-Implement singly-bounded range filters.

-Prevent bugs that are caused by trying to get data from
an empty table/data set.

-In the Select Filter wizard, only create a filter if
"Finish" is clicked when a wizard page with a valid
filter is the current page.

-Always cause a full update to the DataGrid on each update
event, as filters may change the order of table entries.

Change-Id: If395acbeb5aa77e96b638e7c1ae227c8224589ce
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/21221
Reviewed-by: Sami Wagiaalla <swagiaal@redhat.com>
IP-Clean: Sami Wagiaalla <swagiaal@redhat.com>
Tested-by: Sami Wagiaalla <swagiaal@redhat.com>
tmf: Update CTF and custom trace validation

Change-Id: I991b17c363645aa22c0456309cbdd2db6deee2f4
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/21834
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Systemtap: Properly disabled Graphing controls.

In Run Configurations->Graphing menu, if graphing for the current
Run Configuration is disabled upon entering the menu, some controls
appear to be interactable despite being disabled. (Enabling and then
disabling graphing properly disables all controls.)

Change UI updates to make all controls appear disabled when entering
the Graphing menu, if graphing is disabled.

Change-Id: I2b691255d31e7f6703a1f0fcdf3645b1b978322e
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/21960
Tested-by: Hudson CI
Reviewed-by: Sami Wagiaalla <swagiaal@redhat.com>
IP-Clean: Sami Wagiaalla <swagiaal@redhat.com>
Tested-by: Sami Wagiaalla <swagiaal@redhat.com>
tmf: Use full history backend by default

Full history is used in most places, so instead of having to specify
it in every implementation, set it as such in the abstract state system
module. Sub-classes are then free to override it if they want.

Change-Id: I856155114fd2a189bd2d582acb43b724e71f508d
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/21909
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Add automatic trace type detection to import trace wizard

Change-Id: I93e16989fcceaebffd4ef745360a09bc45713ff1
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/21835
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>