|
@@ -26,8 +26,6 @@ import com.dmdirc.commandparser.CommandType;
|
26
|
26
|
import com.dmdirc.commandparser.parsers.CommandParser;
|
27
|
27
|
import com.dmdirc.config.profiles.Profile;
|
28
|
28
|
import com.dmdirc.events.AppErrorEvent;
|
29
|
|
-import com.dmdirc.events.ChannelOpenedEvent;
|
30
|
|
-import com.dmdirc.events.QueryOpenedEvent;
|
31
|
29
|
import com.dmdirc.events.ServerConnectErrorEvent;
|
32
|
30
|
import com.dmdirc.events.ServerConnectedEvent;
|
33
|
31
|
import com.dmdirc.events.ServerConnectingEvent;
|
|
@@ -55,7 +53,6 @@ import com.dmdirc.parser.interfaces.ProtocolDescription;
|
55
|
53
|
import com.dmdirc.parser.interfaces.SecureParser;
|
56
|
54
|
import com.dmdirc.parser.interfaces.StringConverter;
|
57
|
55
|
import com.dmdirc.tls.CertificateManager;
|
58
|
|
-import com.dmdirc.ui.WindowManager;
|
59
|
56
|
import com.dmdirc.ui.core.components.WindowComponent;
|
60
|
57
|
import com.dmdirc.ui.input.TabCompleterFactory;
|
61
|
58
|
import com.dmdirc.ui.input.TabCompletionType;
|
|
@@ -164,8 +161,6 @@ public class Server extends FrameContainer implements Connection {
|
164
|
161
|
private final ParserFactory parserFactory;
|
165
|
162
|
/** Factory to use to create new identities. */
|
166
|
163
|
private final IdentityFactory identityFactory;
|
167
|
|
- /** Window manager to pass to children. */
|
168
|
|
- private final WindowManager windowManager;
|
169
|
164
|
/** The migrator to use to change our config provider. */
|
170
|
165
|
private final ConfigProviderMigrator configMigrator;
|
171
|
166
|
/** Factory to use for creating channels. */
|
|
@@ -197,7 +192,6 @@ public class Server extends FrameContainer implements Connection {
|
197
|
192
|
final TabCompleterFactory tabCompleterFactory,
|
198
|
193
|
final IdentityFactory identityFactory,
|
199
|
194
|
final MessageSinkManager messageSinkManager,
|
200
|
|
- final WindowManager windowManager,
|
201
|
195
|
final ChannelFactory channelFactory,
|
202
|
196
|
final QueryFactory queryFactory,
|
203
|
197
|
final URLBuilder urlBuilder,
|
|
@@ -227,7 +221,6 @@ public class Server extends FrameContainer implements Connection {
|
227
|
221
|
|
228
|
222
|
this.parserFactory = parserFactory;
|
229
|
223
|
this.identityFactory = identityFactory;
|
230
|
|
- this.windowManager = windowManager;
|
231
|
224
|
this.configMigrator = configMigrator;
|
232
|
225
|
this.channelFactory = channelFactory;
|
233
|
226
|
this.queryFactory = queryFactory;
|
|
@@ -531,10 +524,6 @@ public class Server extends FrameContainer implements Connection {
|
531
|
524
|
if (!getState().isDisconnected()) {
|
532
|
525
|
newQuery.reregister();
|
533
|
526
|
}
|
534
|
|
-
|
535
|
|
- windowManager.addWindow(this, newQuery, focus);
|
536
|
|
- getEventBus().publish(new QueryOpenedEvent(newQuery));
|
537
|
|
-
|
538
|
527
|
getTabCompleter().addEntry(TabCompletionType.QUERY_NICK, nick);
|
539
|
528
|
queries.put(lnick, newQuery);
|
540
|
529
|
}
|
|
@@ -592,10 +581,6 @@ public class Server extends FrameContainer implements Connection {
|
592
|
581
|
final ConfigProviderMigrator channelConfig = identityFactory.createMigratableConfig(
|
593
|
582
|
getProtocol(), getIrcd(), getNetwork(), getAddress(), chan.getName());
|
594
|
583
|
final Channel newChan = channelFactory.getChannel(this, chan, channelConfig);
|
595
|
|
-
|
596
|
|
- windowManager.addWindow(this, newChan, focus);
|
597
|
|
- getEventBus().publish(new ChannelOpenedEvent(newChan));
|
598
|
|
-
|
599
|
584
|
getTabCompleter().addEntry(TabCompletionType.CHANNEL, chan.getName());
|
600
|
585
|
channels.add(newChan);
|
601
|
586
|
return newChan;
|