|
@@ -23,8 +23,8 @@
|
23
|
23
|
package com.dmdirc.addons.ui_swing;
|
24
|
24
|
|
25
|
25
|
import com.dmdirc.Channel;
|
|
26
|
+import com.dmdirc.CorePluginExtractor;
|
26
|
27
|
import com.dmdirc.FrameContainer;
|
27
|
|
-import com.dmdirc.Main;
|
28
|
28
|
import com.dmdirc.Server;
|
29
|
29
|
import com.dmdirc.ServerManager;
|
30
|
30
|
import com.dmdirc.actions.ActionManager;
|
|
@@ -113,10 +113,6 @@ public class SwingController extends BaseCommandPlugin implements UIController {
|
113
|
113
|
/** Singleton instance of MainFrame. */
|
114
|
114
|
@Getter
|
115
|
115
|
private MainFrame mainFrame;
|
116
|
|
- /** Instance of Main. */
|
117
|
|
- @Getter
|
118
|
|
- @Deprecated
|
119
|
|
- private final Main main;
|
120
|
116
|
/** Status bar. */
|
121
|
117
|
@Getter
|
122
|
118
|
private SwingStatusBar swingStatusBar;
|
|
@@ -162,6 +158,8 @@ public class SwingController extends BaseCommandPlugin implements UIController {
|
162
|
158
|
private final PluginManager pluginManager;
|
163
|
159
|
/** Controller to use to close the application. */
|
164
|
160
|
private final LifecycleController lifecycleController;
|
|
161
|
+ /** Extractor to use for core plugins. */
|
|
162
|
+ private final CorePluginExtractor corePluginExtractor;
|
165
|
163
|
/** Apple handler, deals with Mac specific code. */
|
166
|
164
|
@Getter
|
167
|
165
|
private final Apple apple;
|
|
@@ -172,29 +170,29 @@ public class SwingController extends BaseCommandPlugin implements UIController {
|
172
|
170
|
* @param pluginInfo Plugin info
|
173
|
171
|
* @param identityManager Identity Manager
|
174
|
172
|
* @param pluginManager Plugin manager
|
175
|
|
- * @param main Main instance
|
176
|
173
|
* @param actionManager Action manager
|
177
|
174
|
* @param commandController Command controller to register commands
|
178
|
175
|
* @param serverManager Server manager to use for server information.
|
179
|
176
|
* @param lifecycleController Controller to use to close the application.
|
|
177
|
+ * @param corePluginExtractor Extractor to use for core plugins.
|
180
|
178
|
*/
|
181
|
179
|
public SwingController(
|
182
|
180
|
final PluginInfo pluginInfo,
|
183
|
181
|
final IdentityManager identityManager,
|
184
|
182
|
final PluginManager pluginManager,
|
185
|
|
- final Main main,
|
186
|
183
|
final ActionManager actionManager,
|
187
|
184
|
final CommandController commandController,
|
188
|
185
|
final ServerManager serverManager,
|
189
|
|
- final LifecycleController lifecycleController) {
|
|
186
|
+ final LifecycleController lifecycleController,
|
|
187
|
+ final CorePluginExtractor corePluginExtractor) {
|
190
|
188
|
super(commandController);
|
191
|
|
- this.main = main;
|
192
|
189
|
this.pluginInfo = pluginInfo;
|
193
|
190
|
this.identityManager = identityManager;
|
194
|
191
|
this.actionManager = actionManager;
|
195
|
192
|
this.pluginManager = pluginManager;
|
196
|
193
|
this.serverManager = serverManager;
|
197
|
194
|
this.lifecycleController = lifecycleController;
|
|
195
|
+ this.corePluginExtractor = corePluginExtractor;
|
198
|
196
|
|
199
|
197
|
globalConfig = identityManager.getGlobalConfiguration();
|
200
|
198
|
globalIdentity = identityManager.getGlobalConfigIdentity();
|
|
@@ -259,7 +257,7 @@ public class SwingController extends BaseCommandPlugin implements UIController {
|
259
|
257
|
}
|
260
|
258
|
};
|
261
|
259
|
final SwingFirstRunWizard wizard = new SwingFirstRunWizard(
|
262
|
|
- getMainFrame(), SwingController.this);
|
|
260
|
+ getMainFrame(), SwingController.this, corePluginExtractor);
|
263
|
261
|
wizard.getWizardDialog().addWizardListener(listener);
|
264
|
262
|
wizard.display();
|
265
|
263
|
}
|