aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
diff options
context:
space:
mode:
authorKarl Ostmo <kostmo@gmail.com>2010-01-25 15:47:25 -0800
committerXavier Ducrohet <xav@android.com>2010-01-25 15:50:05 -0800
commit214968fa233237b3ad97741dc58fef1e97512c10 (patch)
tree9f3ffbea48d777cced311dd1fb8e9617c0b64770 /ddms
parent31d2e1f6ee7d8a033c3d73b62d51fb220ff36d56 (diff)
downloadsdk-214968fa233237b3ad97741dc58fef1e97512c10.zip
sdk-214968fa233237b3ad97741dc58fef1e97512c10.tar.gz
sdk-214968fa233237b3ad97741dc58fef1e97512c10.tar.bz2
resolves Issue #5280: Go to problem in source from Logcat.
This is integrated from external/master/development.git in order to not be lost when the development->sdk move is merged into external/master Change-Id: I36b6c467900c80b58342ee586f802979e8ce821c http://android.git.kernel.org/?p=platform/development.git;a=commit;h=fa974da92bec6ea9bb03ac4511622d784f04d271
Diffstat (limited to 'ddms')
-rw-r--r--ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogPanel.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogPanel.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogPanel.java
index 154e2fa..82c1259 100644
--- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogPanel.java
+++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogPanel.java
@@ -1568,4 +1568,17 @@ public class LogPanel extends SelectionDependentPanel {
mEditFilterAction.setEnabled(selectedFilter.supportsEdit());
}
}
+
+ public String getSelectedErrorLineMessage() {
+ Table table = mCurrentFilter.getTable();
+ int[] selection = table.getSelectionIndices();
+
+ if (selection.length == 1) {
+ TableItem item = table.getItem(selection[0]);
+ LogMessage msg = (LogMessage)item.getData();
+ if (msg.data.logLevel == LogLevel.ERROR || msg.data.logLevel == LogLevel.WARN)
+ return msg.msg;
+ }
+ return null;
+ }
}