Change-Id: I3800cce187a50206577e2899500d59d23fa64973
package org.eclipse.linuxtools.internal.tmf.ui.project.handlers;
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;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
try {
IPath path = resource.getLocation();
if (path != null && (trace.getParent() instanceof TmfTraceFolder)) {
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
TmfExperimentFolder experimentFolder = trace.getProject().getExperimentsFolder();
// Propagate the removal to traces
// Refresh the project
trace.getProject().refresh();
// 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$
}
} catch (CoreException e) {
Activator.getDefault().logError("Error deleting trace: " + trace.getName(), e); //$NON-NLS-1$
}