ソースを参照

Remove SwingController.getIdentityFactory().

Change-Id: I08db215e954aea317c2a7dd635b171fbde99ef00
Reviewed-on: http://gerrit.dmdirc.com/3096
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8
Chris Smith 10年前
コミット
6d385706b1

+ 0
- 11
src/com/dmdirc/addons/ui_swing/SwingController.java ファイルの表示

@@ -42,7 +42,6 @@ import com.dmdirc.config.prefs.PreferencesType;
42 42
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
43 43
 import com.dmdirc.interfaces.config.ConfigProvider;
44 44
 import com.dmdirc.interfaces.config.IdentityController;
45
-import com.dmdirc.interfaces.config.IdentityFactory;
46 45
 import com.dmdirc.interfaces.ui.UIController;
47 46
 import com.dmdirc.interfaces.ui.Window;
48 47
 import com.dmdirc.logger.ErrorLevel;
@@ -92,8 +91,6 @@ public class SwingController extends BaseCommandPlugin implements UIController {
92 91
     private final PluginInfo pluginInfo;
93 92
     /** Global config manager. */
94 93
     private final AggregateConfigProvider globalConfig;
95
-    /** Identity factory. */
96
-    private final IdentityFactory identityFactory;
97 94
     /** Global config identity. */
98 95
     private final ConfigProvider globalIdentity;
99 96
     /** Addon config identity. */
@@ -116,7 +113,6 @@ public class SwingController extends BaseCommandPlugin implements UIController {
116 113
      *
117 114
      * @param pluginInfo Plugin info
118 115
      * @param identityManager Identity Manager
119
-     * @param identityFactory Factory used to create identities.
120 116
      * @param pluginManager Plugin manager
121 117
      * @param serverManager Server manager to use for server information.
122 118
      * @param urlBuilder URL builder to use to resolve icons etc.
@@ -126,14 +122,12 @@ public class SwingController extends BaseCommandPlugin implements UIController {
126 122
     public SwingController(
127 123
             final PluginInfo pluginInfo,
128 124
             final IdentityController identityManager,
129
-            final IdentityFactory identityFactory,
130 125
             final PluginManager pluginManager,
131 126
             final ServerManager serverManager,
132 127
             final URLBuilder urlBuilder,
133 128
             final ColourManager colourManager,
134 129
             final EventBus eventBus) {
135 130
         this.pluginInfo = pluginInfo;
136
-        this.identityFactory = identityFactory;
137 131
         this.pluginManager = pluginManager;
138 132
         this.colourManager = colourManager;
139 133
         this.urlBuilder = urlBuilder;
@@ -152,11 +146,6 @@ public class SwingController extends BaseCommandPlugin implements UIController {
152 146
         return globalConfig;
153 147
     }
154 148
 
155
-    @Deprecated
156
-    public IdentityFactory getIdentityFactory() {
157
-        return identityFactory;
158
-    }
159
-
160 149
     @Deprecated
161 150
     public ConfigProvider getGlobalIdentity() {
162 151
         return globalIdentity;

+ 5
- 2
src/com/dmdirc/addons/ui_swing/components/frames/ChannelFrame.java ファイルの表示

@@ -36,6 +36,7 @@ import com.dmdirc.addons.ui_swing.components.TopicBarFactory;
36 36
 import com.dmdirc.commandparser.PopupType;
37 37
 import com.dmdirc.interfaces.actions.ActionType;
38 38
 import com.dmdirc.interfaces.config.ConfigProvider;
39
+import com.dmdirc.interfaces.config.IdentityFactory;
39 40
 import com.dmdirc.util.URLBuilder;
40 41
 import com.dmdirc.util.annotations.factory.Factory;
41 42
 import com.dmdirc.util.annotations.factory.Unbound;
@@ -81,12 +82,14 @@ public final class ChannelFrame extends InputTextFrame implements ActionListener
81 82
      * and default options for the form.
82 83
      *
83 84
      * @param deps The dependencies required by text frames.
85
+     * @param identityFactory The factory to use to create a channel identity.
84 86
      * @param topicBarFactory The factory to use to create topic bars.
85 87
      * @param urlBuilder The URL Builder to use for constructing icons paths.
86 88
      * @param owner The Channel object that owns this frame
87 89
      */
88 90
     public ChannelFrame(
89 91
             final TextFrameDependencies deps,
92
+            final IdentityFactory identityFactory,
90 93
             final TopicBarFactory topicBarFactory,
91 94
             final URLBuilder urlBuilder,
92 95
             @Unbound final Channel owner) {
@@ -102,8 +105,8 @@ public final class ChannelFrame extends InputTextFrame implements ActionListener
102 105
         ActionManager.getActionManager().registerListener(this,
103 106
                 CoreActionType.CLIENT_CLOSING);
104 107
 
105
-        identity = controller.getIdentityFactory().createChannelConfig(
106
-                owner.getConnection().getNetwork(), owner.getChannelInfo().getName());
108
+        identity = identityFactory.createChannelConfig(owner.getConnection().getNetwork(),
109
+                owner.getChannelInfo().getName());
107 110
     }
108 111
 
109 112
     /**

読み込み中…
キャンセル
保存