summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
580af1b)
Previously, if we import a file that was previously loaded once, traces
won't be notified that the file changed.
Now, if the file already exist, the supplementary files for the analysis
are deleted and the related traces are closed.
Change-Id: I62ce6e6f4295db5f0c82e4c77ae73b4e5a4c1b85
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/73648
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
File file = new File(path);
IStatus status = XmlUtils.xmlValidate(file);
if (status.isOK()) {
File file = new File(path);
IStatus status = XmlUtils.xmlValidate(file);
if (status.isOK()) {
+ deleteSupplementaryFile(file.getName());
status = XmlUtils.addXmlFile(file);
if (status.isOK()) {
fillAnalysesList();
status = XmlUtils.addXmlFile(file);
if (status.isOK()) {
fillAnalysesList();