aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@google.com>2010-01-28 13:44:04 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-01-28 13:44:04 -0800
commit3d954a35333230acef771cf10a379564c651cf3f (patch)
tree7d32a865b55b3a63ee649cecac5f2bab77fe1588 /ddms
parente4fb3cc3c6918017112b4f6db6adada662633e0f (diff)
parentd5c8674015ef40b1356629d2e8dca3f9a8b18ee3 (diff)
downloadsdk-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.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;
+ }
}