tmf.xml: Delete existing supplementary files when importing xml analysis
authorJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Wed, 25 May 2016 18:34:27 +0000 (14:34 -0400)
committerJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Wed, 1 Jun 2016 15:00:18 +0000 (11:00 -0400)
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>
tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/handler/ManageXMLAnalysisDialog.java

index ff17095369fce86910f626c22c30c39b42f2bf73..321b5fd91510c367c97eac4eee51a7bfaa72574b 100644 (file)
@@ -248,6 +248,7 @@ public class ManageXMLAnalysisDialog extends Dialog {
             File file = new File(path);
             IStatus status = XmlUtils.xmlValidate(file);
             if (status.isOK()) {
+                deleteSupplementaryFile(file.getName());
                 status = XmlUtils.addXmlFile(file);
                 if (status.isOK()) {
                     fillAnalysesList();
This page took 0.026017 seconds and 5 git commands to generate.