diff options
author | Xavier Ducrohet <xav@google.com> | 2010-01-28 13:44:04 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-01-28 13:44:04 -0800 |
commit | 3d954a35333230acef771cf10a379564c651cf3f (patch) | |
tree | 7d32a865b55b3a63ee649cecac5f2bab77fe1588 /ddms | |
parent | e4fb3cc3c6918017112b4f6db6adada662633e0f (diff) | |
parent | d5c8674015ef40b1356629d2e8dca3f9a8b18ee3 (diff) | |
download | sdk-3d954a35333230acef771cf10a379564c651cf3f.zip sdk-3d954a35333230acef771cf10a379564c651cf3f.tar.gz sdk-3d954a35333230acef771cf10a379564c651cf3f.tar.bz2 |
am d5c86740: am 56b4806f: Merge "resolves Issue #5280: Go to problem in source from Logcat." into eclair
Merge commit 'd5c8674015ef40b1356629d2e8dca3f9a8b18ee3'
* commit 'd5c8674015ef40b1356629d2e8dca3f9a8b18ee3':
resolves Issue #5280: Go to problem in source from Logcat.
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; + } } |