From 9d869394e0cdf85912e9997fb324d73776f9a9cb Mon Sep 17 00:00:00 2001 From: Patrick Tasse Date: Fri, 13 Jul 2012 16:40:57 -0400 Subject: [PATCH] Fix for bug 384406: Delete trace propagation not working in Windows. Change-Id: I3800cce187a50206577e2899500d59d23fa64973 --- .../internal/tmf/ui/project/handlers/DeleteTraceHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DeleteTraceHandler.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DeleteTraceHandler.java index 656565b088..012e10c7cc 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DeleteTraceHandler.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DeleteTraceHandler.java @@ -12,7 +12,6 @@ package org.eclipse.linuxtools.internal.tmf.ui.project.handlers; -import java.io.IOException; import java.util.Iterator; import java.util.LinkedList; import java.util.List; @@ -116,7 +115,7 @@ public class DeleteTraceHandler extends AbstractHandler { try { IPath path = resource.getLocation(); if (path != null && (trace.getParent() instanceof TmfTraceFolder)) { - String location = path.toFile().getCanonicalPath(); + String location = path.toString(); TmfExperimentFolder experimentFolder = trace.getProject().getExperimentsFolder(); // Propagate the removal to traces @@ -143,8 +142,6 @@ public class DeleteTraceHandler extends AbstractHandler { // Refresh the project trace.getProject().refresh(); - } catch (IOException e) { - Activator.getDefault().logError("Error deleting trace: " + trace.getName(), e); //$NON-NLS-1$ } catch (CoreException e) { Activator.getDefault().logError("Error deleting trace: " + trace.getName(), e); //$NON-NLS-1$ } -- 2.34.1