aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Fraxino Araujo2014-06-18 15:12:54 (EDT)
committerRoland Grunberg2014-07-18 12:08:48 (EDT)
commitd5e453b7b97e498bc2f7ce970d9572d8b8b870c9 (patch)
tree011828008b2f6cae75264c03391244eecb774c5c
parenta5cf5c9043233248aa3103d307a62035941d35ae (diff)
downloadorg.eclipse.linuxtools-d5e453b7b97e498bc2f7ce970d9572d8b8b870c9.zip
org.eclipse.linuxtools-d5e453b7b97e498bc2f7ce970d9572d8b8b870c9.tar.gz
org.eclipse.linuxtools-d5e453b7b97e498bc2f7ce970d9572d8b8b870c9.tar.bz2
perf: fix double click to source code in synchronized projectsrefs/changes/13/28713/4
Change-Id: I133ccde4b9d17cf0fac6754d733841e964bf0067 Reviewed-on: https://git.eclipse.org/r/28713 Tested-by: Hudson CI Reviewed-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com> Reviewed-by: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com>
-rw-r--r--perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java
index 8d8d5a4..9399541 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java
@@ -13,6 +13,7 @@ package org.eclipse.linuxtools.internal.perf.ui;
import java.util.Map;
import org.eclipse.cdt.core.model.ICProject;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.text.BadLocationException;
@@ -68,7 +69,7 @@ public class PerfDoubleClickAction extends Action {
bFound = true;
}
if (!bFound) {
- ProfileUIUtils.openEditorAndSelect(file.getPath(), 1);
+ ProfileUIUtils.openEditorAndSelect(file.getPath(), 1, ResourcesPlugin.getWorkspace().getRoot().getProject(dso.getName()));
}
}
// if we encounter an exception, act as though no corresponding source exists