|
@@ -24,7 +24,6 @@ package com.dmdirc.addons.logging;
|
24
|
24
|
|
25
|
25
|
import com.dmdirc.ClientModule.GlobalConfig;
|
26
|
26
|
import com.dmdirc.DMDircMBassador;
|
27
|
|
-import com.dmdirc.FrameContainer;
|
28
|
27
|
import com.dmdirc.Query;
|
29
|
28
|
import com.dmdirc.commandline.CommandLineOptionsModule.Directory;
|
30
|
29
|
import com.dmdirc.config.prefs.PluginPreferencesCategory;
|
|
@@ -54,6 +53,7 @@ import com.dmdirc.interfaces.GroupChat;
|
54
|
53
|
import com.dmdirc.interfaces.GroupChatUser;
|
55
|
54
|
import com.dmdirc.interfaces.PrivateChat;
|
56
|
55
|
import com.dmdirc.interfaces.User;
|
|
56
|
+import com.dmdirc.interfaces.WindowModel;
|
57
|
57
|
import com.dmdirc.interfaces.config.AggregateConfigProvider;
|
58
|
58
|
import com.dmdirc.interfaces.config.ConfigChangeListener;
|
59
|
59
|
import com.dmdirc.logger.ErrorLevel;
|
|
@@ -371,7 +371,7 @@ public class LoggingManager implements ConfigChangeListener {
|
371
|
371
|
final String filename = locator.getLogFile(event.getChannel().getName());
|
372
|
372
|
|
373
|
373
|
if (autobackbuffer) {
|
374
|
|
- showBackBuffer((FrameContainer) event.getChannel().getWindowModel(), filename);
|
|
374
|
+ showBackBuffer(event.getChannel().getWindowModel(), filename);
|
375
|
375
|
}
|
376
|
376
|
|
377
|
377
|
synchronized (FORMAT_LOCK) {
|
|
@@ -400,7 +400,7 @@ public class LoggingManager implements ConfigChangeListener {
|
400
|
400
|
* @param frame The frame to add the backbuffer lines to
|
401
|
401
|
* @param filename File to get backbuffer from
|
402
|
402
|
*/
|
403
|
|
- protected void showBackBuffer(final FrameContainer frame, final String filename) {
|
|
403
|
+ protected void showBackBuffer(final WindowModel frame, final String filename) {
|
404
|
404
|
if (frame == null) {
|
405
|
405
|
eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, null, "Given a null frame", ""));
|
406
|
406
|
return;
|
|
@@ -562,7 +562,7 @@ public class LoggingManager implements ConfigChangeListener {
|
562
|
562
|
*
|
563
|
563
|
* @return True if the history is available, false otherwise
|
564
|
564
|
*/
|
565
|
|
- protected boolean showHistory(final FrameContainer target) {
|
|
565
|
+ protected boolean showHistory(final WindowModel target) {
|
566
|
566
|
final String descriptor;
|
567
|
567
|
|
568
|
568
|
if (target instanceof GroupChat) {
|