|
@@ -25,6 +25,7 @@ package com.dmdirc.addons.ui_swing;
|
25
|
25
|
import com.dmdirc.Channel;
|
26
|
26
|
import com.dmdirc.FrameContainer;
|
27
|
27
|
import com.dmdirc.Server;
|
|
28
|
+import com.dmdirc.actions.ActionManager;
|
28
|
29
|
import com.dmdirc.addons.ui_swing.commands.ChannelSettings;
|
29
|
30
|
import com.dmdirc.addons.ui_swing.commands.Input;
|
30
|
31
|
import com.dmdirc.addons.ui_swing.commands.PopInCommand;
|
|
@@ -58,6 +59,7 @@ import com.dmdirc.logger.ErrorLevel;
|
58
|
59
|
import com.dmdirc.logger.Logger;
|
59
|
60
|
import com.dmdirc.plugins.BasePlugin;
|
60
|
61
|
import com.dmdirc.plugins.PluginInfo;
|
|
62
|
+import com.dmdirc.plugins.PluginManager;
|
61
|
63
|
import com.dmdirc.ui.IconManager;
|
62
|
64
|
import com.dmdirc.ui.WindowManager;
|
63
|
65
|
import com.dmdirc.ui.core.components.StatusBarManager;
|
|
@@ -139,6 +141,12 @@ public class SwingController extends BasePlugin implements UIController {
|
139
|
141
|
/** Dialog manager. */
|
140
|
142
|
@Getter
|
141
|
143
|
private final DialogManager dialogManager;
|
|
144
|
+ /** Action manager. */
|
|
145
|
+ @Getter
|
|
146
|
+ private final ActionManager actionManager;
|
|
147
|
+ /** Plugin manager. */
|
|
148
|
+ @Getter
|
|
149
|
+ private final PluginManager pluginManager;
|
142
|
150
|
/** Apple handler, deals with Mac specific code. */
|
143
|
151
|
@Getter
|
144
|
152
|
private final Apple apple;
|
|
@@ -150,10 +158,14 @@ public class SwingController extends BasePlugin implements UIController {
|
150
|
158
|
* @param identityManager Identity Manager
|
151
|
159
|
*/
|
152
|
160
|
public SwingController(final PluginInfo pluginInfo,
|
153
|
|
- final IdentityManager identityManager) {
|
|
161
|
+ final IdentityManager identityManager,
|
|
162
|
+ final PluginManager pluginManager,
|
|
163
|
+ final ActionManager actionManager) {
|
154
|
164
|
super();
|
155
|
165
|
this.pluginInfo = pluginInfo;
|
156
|
166
|
this.identityManager = identityManager;
|
|
167
|
+ this.actionManager = actionManager;
|
|
168
|
+ this.pluginManager = pluginManager;
|
157
|
169
|
apple = new Apple(getGlobalConfig());
|
158
|
170
|
globalConfig = identityManager.getGlobalConfiguration();
|
159
|
171
|
globalIdentity = identityManager.getGlobalConfigIdentity();
|