summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorCamilo Bernal2013-05-03 16:21:41 (EDT)
committer Roland Grunberg2013-05-03 17:07:39 (EDT)
commit76e202d071d18f2bd5234bfa331a8917c41d9369 (patch)
treeaea0e2d62974f8b13b46cdcd0ca7d740eb7a0ee1
parenta51b10e651b121b231794d5b46bc36b7c2425728 (diff)
downloadorg.eclipse.linuxtools-76e202d071d18f2bd5234bfa331a8917c41d9369.zip
org.eclipse.linuxtools-76e202d071d18f2bd5234bfa331a8917c41d9369.tar.gz
org.eclipse.linuxtools-76e202d071d18f2bd5234bfa331a8917c41d9369.tar.bz2
Perf: Add handler for global find action on the source disassembly view.refs/changes/09/12509/2
Change-Id: I638e8a61b2c9bd976ad7fb4925cd5ac2c6e4a562 Reviewed-on: https://git.eclipse.org/r/12509 Reviewed-by: Roland Grunberg <rgrunber@redhat.com> IP-Clean: 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/SourceDisassemblyView.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/SourceDisassemblyView.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/SourceDisassemblyView.java
index 073fabc..2cd6277 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/SourceDisassemblyView.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/SourceDisassemblyView.java
@@ -34,6 +34,7 @@ import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.ui.texteditor.FindReplaceAction;
@@ -138,6 +139,7 @@ public class SourceDisassemblyView extends ViewPart implements IFindReplaceTarge
findAction.setToolTipText(PerfPlugin.STRINGS_SearchSourceDisassembly);
IActionBars bars = getViewSite().getActionBars();
bars.getToolBarManager().add(findAction);
+ bars.setGlobalActionHandler(ActionFactory.FIND.getId(), findAction);
}
@Override