diff options
author | Siva Velusamy <vsiva@google.com> | 2012-05-03 13:40:50 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-05-03 13:40:50 -0700 |
commit | d376dda3beacf53979a5565f29a8e3db16d81294 (patch) | |
tree | 64563a6d8ca2b9ccc8190243d57a0d6e850753e3 /eclipse | |
parent | 65bafb25ed043fff23072cbe76b602a62dcd670c (diff) | |
parent | 231d5ea266e58657282865b1166e329fd333dcd1 (diff) | |
download | sdk-d376dda3beacf53979a5565f29a8e3db16d81294.zip sdk-d376dda3beacf53979a5565f29a8e3db16d81294.tar.gz sdk-d376dda3beacf53979a5565f29a8e3db16d81294.tar.bz2 |
Merge "logcat: Remove JFace TableViewer and use SWT Table directly"
Diffstat (limited to 'eclipse')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/LogCatMonitor.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/LogCatMonitor.java b/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/LogCatMonitor.java index f9c94a7..1e50822 100644 --- a/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/LogCatMonitor.java +++ b/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/LogCatMonitor.java @@ -19,7 +19,7 @@ import com.android.ddmlib.AndroidDebugBridge; import com.android.ddmlib.AndroidDebugBridge.IDeviceChangeListener; import com.android.ddmlib.IDevice; import com.android.ddmlib.Log.LogLevel; -import com.android.ddmuilib.logcat.ILogCatMessageEventListener; +import com.android.ddmuilib.logcat.ILogCatBufferChangeListener; import com.android.ddmuilib.logcat.LogCatMessage; import com.android.ddmuilib.logcat.LogCatReceiver; import com.android.ddmuilib.logcat.LogCatReceiverFactory; @@ -98,7 +98,7 @@ public class LogCatMonitor { return; } - data.receiver.removeMessageReceivedEventListener(data.messageEventListener); + data.receiver.removeMessageReceivedEventListener(data.bufferChangeListener); } public void monitorDevice(final IDevice device) { @@ -113,10 +113,11 @@ public class LogCatMonitor { } LogCatReceiver r = LogCatReceiverFactory.INSTANCE.newReceiver(device, mPrefStore); - ILogCatMessageEventListener l = new ILogCatMessageEventListener() { + ILogCatBufferChangeListener l = new ILogCatBufferChangeListener() { @Override - public void messageReceived(List<LogCatMessage> receivedMessages) { - checkMessages(receivedMessages, device); + public void bufferChanged(List<LogCatMessage> addedMessages, + List<LogCatMessage> deletedMessages) { + checkMessages(addedMessages, device); } }; r.addMessageReceivedEventListener(l); @@ -205,11 +206,11 @@ public class LogCatMonitor { private static class DeviceData { public final LogCatReceiver receiver; - public final ILogCatMessageEventListener messageEventListener; + public final ILogCatBufferChangeListener bufferChangeListener; - public DeviceData(LogCatReceiver r, ILogCatMessageEventListener l) { + public DeviceData(LogCatReceiver r, ILogCatBufferChangeListener l) { receiver = r; - messageEventListener = l; + bufferChangeListener = l; } } } |