aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2012-05-08 17:17:51 -0700
committerSiva Velusamy <vsiva@google.com>2012-05-09 14:00:26 -0700
commiteef4ed8effbf4b698f0ae683331d1c2fe2515d42 (patch)
tree2a1932c06058a8233379aeb008bf1e101e19b8a7 /ddms
parent21a74431ed9e69c1f6cfe6b5c88cbecaaff76b7c (diff)
downloadsdk-eef4ed8effbf4b698f0ae683331d1c2fe2515d42.zip
sdk-eef4ed8effbf4b698f0ae683331d1c2fe2515d42.tar.gz
sdk-eef4ed8effbf4b698f0ae683331d1c2fe2515d42.tar.bz2
Allow users more control over auto monitoring logcat.
To help users who don't know about logcat, we automatically monitor logcat output to see if there are any errors from a user application, and if so, display the logcat view. This patch makes this feature a bit easier to use: - The first time the logcat view is about to be displayed, a dialog is shown that allows the users to enable/disable auto monitoring. Note that this can also be done via logcat preferences. - Users can now control the message priority that will trigger auto monitoring. - Once the logcat view has been displayed, we turn off auto monitoring until the next launch. This reduces overhead and avoids unnecessary change of focus in cases where the user is already interacting with the logcat view. Change-Id: I44a9ccea9148dea7bf6dc7d7864a1bb56a7376fe
Diffstat (limited to 'ddms')
-rw-r--r--ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java
index d4da8e4..c2942d0 100644
--- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java
+++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java
@@ -499,8 +499,11 @@ public final class LogCatPanel extends SelectionDependentPanel
private void selectFilterAt(final int index) {
mFiltersTableViewer.refresh();
- mFiltersTableViewer.getTable().setSelection(index);
- filterSelectionChanged();
+
+ if (index != mFiltersTableViewer.getTable().getSelectionIndex()) {
+ mFiltersTableViewer.getTable().setSelection(index);
+ filterSelectionChanged();
+ }
}
private void createFiltersTable(Composite parent) {