diff options
author | Siva Velusamy <vsiva@google.com> | 2012-06-04 15:29:15 -0700 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2012-06-05 13:02:53 -0700 |
commit | f6070eaead8aa560f556eeafcf4e326fd6fdb343 (patch) | |
tree | b1d945cda1375276754deb661eebea4b28851fa1 /eclipse/plugins/com.android.ide.eclipse.monitor/src/com | |
parent | ea3f581acc01a02550df1137b3adcd8ea5755852 (diff) | |
download | sdk-f6070eaead8aa560f556eeafcf4e326fd6fdb343.zip sdk-f6070eaead8aa560f556eeafcf4e326fd6fdb343.tar.gz sdk-f6070eaead8aa560f556eeafcf4e326fd6fdb343.tar.bz2 |
logcat: Support searching through the message list.
This CL adds support for invoking a find dialog when
the logcat view is in focus. The dialog can be invoked
via Edit -> Find (Ctrl + F), or via the context menu.
The dialog provides a way to specify a search term and
allows the user to search forward or backward in the
list of messages.
Change-Id: I7e7c6b20a051c161f035b3b45aba5f119f2c11a9
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.monitor/src/com')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/MonitorActionBarAdvisor.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/MonitorActionBarAdvisor.java b/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/MonitorActionBarAdvisor.java index 4cf7a94..e31e45e 100644 --- a/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/MonitorActionBarAdvisor.java +++ b/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/MonitorActionBarAdvisor.java @@ -25,11 +25,14 @@ import org.eclipse.ui.actions.ActionFactory; import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; import org.eclipse.ui.application.ActionBarAdvisor; import org.eclipse.ui.application.IActionBarConfigurer; +import org.eclipse.ui.internal.IWorkbenchGraphicConstants; +import org.eclipse.ui.internal.WorkbenchImages; public class MonitorActionBarAdvisor extends ActionBarAdvisor { private IWorkbenchAction mQuitAction; private IWorkbenchAction mCopyAction; private IWorkbenchAction mSelectAllAction; + private IWorkbenchAction mFindAction; private IWorkbenchAction mOpenPerspectiveAction; private IWorkbenchAction mResetPerspectiveAction; private IWorkbenchAction mPreferencesAction; @@ -50,6 +53,10 @@ public class MonitorActionBarAdvisor extends ActionBarAdvisor { mSelectAllAction = ActionFactory.SELECT_ALL.create(window); register(mSelectAllAction); + mFindAction = ActionFactory.FIND.create(window); + mFindAction.setText("Find..."); // replace the default "Find and Replace..." + register(mFindAction); + mOpenPerspectiveAction = ActionFactory.OPEN_PERSPECTIVE_DIALOG.create(window); register(mOpenPerspectiveAction); @@ -83,6 +90,7 @@ public class MonitorActionBarAdvisor extends ActionBarAdvisor { // contents of Edit menu editMenu.add(mCopyAction); editMenu.add(mSelectAllAction); + editMenu.add(mFindAction); // contents of Window menu windowMenu.add(mOpenPerspectiveAction); |