diff options
author | Karl Ostmo <kostmo@gmail.com> | 2010-01-25 15:47:25 -0800 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-01-25 15:50:05 -0800 |
commit | 214968fa233237b3ad97741dc58fef1e97512c10 (patch) | |
tree | 9f3ffbea48d777cced311dd1fb8e9617c0b64770 /ddms | |
parent | 31d2e1f6ee7d8a033c3d73b62d51fb220ff36d56 (diff) | |
download | sdk-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.java | 13 |
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; + } } |