Переглянути джерело

Associated changes for prefs tidy up.

Change-Id: Id8e090709271b6a908bc56273b9ff8dfd180370d
Depends-On: I428aa1596e7d41e6842175d805d88a4421c1b764
Depends-On: Iadcf92d4390034828d005a9c9e92d9a8ba189c99
Reviewed-on: http://gerrit.dmdirc.com/2453
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.7rc1
Greg Holmes 12 роки тому
джерело
коміт
c8a0e27a20

+ 13
- 1
src/com/dmdirc/addons/ui_swing/SwingController.java Переглянути файл

@@ -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();

+ 3
- 1
src/com/dmdirc/addons/ui_swing/dialogs/prefs/SwingPreferencesDialog.java Переглянути файл

@@ -98,7 +98,9 @@ public final class SwingPreferencesDialog extends StandardDialog implements
98 98
                             new UpdateConfigPanel(controller),
99 99
                             new URLConfigPanel(controller, getMainFrame()),
100 100
                             controller.getGlobalConfig(),
101
-                            controller.getGlobalIdentity());
101
+                            controller.getGlobalIdentity(),
102
+                            controller.getActionManager(),
103
+                            controller.getPluginManager());
102 104
                 } catch (IllegalArgumentException ex) {
103 105
                     mainPanel.setError(ex.getMessage());
104 106
                     Logger.appError(ErrorLevel.HIGH, "Unable to load the" +

Завантаження…
Відмінити
Зберегти