~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-13 21:43:22 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130513214322-6frgd9du1n0w2uo7
Tags: 1.2.1-1
* Team upload.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
package org.eclipse.linuxtools.internal.perf.ui;
12
12
 
13
13
import java.util.HashMap;
 
14
import java.util.Map;
14
15
 
15
16
import org.eclipse.cdt.core.model.ICProject;
16
17
import org.eclipse.core.runtime.CoreException;
35
36
                super();
36
37
                viewer = v;
37
38
        }
 
39
        @Override
38
40
        public void run() {
39
41
                ISelection selection = viewer.getSelection();
40
42
                Object obj = ((IStructuredSelection)selection).getFirstElement();
73
75
                                project = ProfileUIUtils.findCProjectWithAbsolutePath(binaryPath);
74
76
                                HashMap<String, int[]> map = ProfileUIUtils.findFunctionsInProject(project, sym.getFunctionName(), -1, file.getPath(), true);
75
77
                                boolean bFound = false;
76
 
                                for (String loc : map.keySet()) {
77
 
                                        ProfileUIUtils.openEditorAndSelect(loc, map.get(loc)[0], map.get(loc)[1]);
 
78
                                for (Map.Entry<String, int[]> entry : map.entrySet()) {
 
79
                                        ProfileUIUtils.openEditorAndSelect(entry.getKey(), entry.getValue()[0], entry.getValue()[1]);
78
80
                                        bFound = true;
79
81
                                }
80
82
                                if (!bFound) {