소스 검색

Remove some deprecated method calls.

Change-Id: I872ecaf83eac2c7babe6942179db19806f803b33
Reviewed-on: http://gerrit.dmdirc.com/3163
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8
Chris Smith 10 년 전
부모
커밋
0709bf5bc4

+ 13
- 13
src/com/dmdirc/addons/freedesktop_notifications/FreeDesktopNotificationsPlugin.java 파일 보기

@@ -169,7 +169,7 @@ public class FreeDesktopNotificationsPlugin extends BaseCommandPlugin implements
169 169
      */
170 170
     @Override
171 171
     public void onLoad() {
172
-        config.addChangeListener(getDomain(), this);
172
+        config.addChangeListener(pluginInfo.getDomain(), this);
173 173
         setCachedSettings();
174 174
         // Extract the files needed
175 175
         try {
@@ -194,8 +194,8 @@ public class FreeDesktopNotificationsPlugin extends BaseCommandPlugin implements
194 194
     /** {@inheritDoc} */
195 195
     @Override
196 196
     public void domainUpdated() {
197
-        identity.setOption(getDomain(),
198
-                "general.icon", filesHelper.getFilesDirString() + "icon.png");
197
+        identity.setOption(pluginInfo.getDomain(), "general.icon",
198
+                filesHelper.getFilesDirString() + "icon.png");
199 199
     }
200 200
 
201 201
     /** {@inheritDoc} */
@@ -206,23 +206,23 @@ public class FreeDesktopNotificationsPlugin extends BaseCommandPlugin implements
206 206
                 "General configuration for FreeDesktop Notifications plugin.");
207 207
 
208 208
         general.addSetting(new PreferencesSetting(PreferencesType.INTEGER,
209
-                getDomain(), "general.timeout", "Timeout",
209
+                pluginInfo.getDomain(), "general.timeout", "Timeout",
210 210
                 "Length of time in seconds before the notification popup closes.",
211 211
                 manager.getConfigManager(), manager.getIdentity()));
212 212
         general.addSetting(new PreferencesSetting(PreferencesType.FILE,
213
-                getDomain(), "general.icon", "icon",
213
+                pluginInfo.getDomain(), "general.icon", "icon",
214 214
                 "Path to icon to use on the notification.",
215 215
                 manager.getConfigManager(), manager.getIdentity()));
216 216
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
217
-                getDomain(), "advanced.escapehtml", "Escape HTML",
217
+                pluginInfo.getDomain(), "advanced.escapehtml", "Escape HTML",
218 218
                 "Some Implementations randomly parse HTML, escape it before showing?",
219 219
                 manager.getConfigManager(), manager.getIdentity()));
220 220
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
221
-                getDomain(), "advanced.strictescape", "Strict Escape HTML",
221
+                pluginInfo.getDomain(), "advanced.strictescape", "Strict Escape HTML",
222 222
                 "Strictly escape HTML or just the basic characters? (&, < and >)",
223 223
                 manager.getConfigManager(), manager.getIdentity()));
224 224
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
225
-                getDomain(), "advanced.stripcodes", "Strip Control Codes",
225
+                pluginInfo.getDomain(), "advanced.stripcodes", "Strip Control Codes",
226 226
                 "Strip IRC Control codes from messages?",
227 227
                 manager.getConfigManager(), manager.getIdentity()));
228 228
 
@@ -230,11 +230,11 @@ public class FreeDesktopNotificationsPlugin extends BaseCommandPlugin implements
230 230
     }
231 231
 
232 232
     private void setCachedSettings() {
233
-        timeout = config.getOptionInt(getDomain(), "general.timeout");
234
-        icon = config.getOption(getDomain(), "general.icon");
235
-        escapehtml = config.getOptionBool(getDomain(), "advanced.escapehtml");
236
-        strictescape = config.getOptionBool(getDomain(), "advanced.strictescape");
237
-        stripcodes = config.getOptionBool(getDomain(), "advanced.stripcodes");
233
+        timeout = config.getOptionInt(pluginInfo.getDomain(), "general.timeout");
234
+        icon = config.getOption(pluginInfo.getDomain(), "general.icon");
235
+        escapehtml = config.getOptionBool(pluginInfo.getDomain(), "advanced.escapehtml");
236
+        strictescape = config.getOptionBool(pluginInfo.getDomain(), "advanced.strictescape");
237
+        stripcodes = config.getOptionBool(pluginInfo.getDomain(), "advanced.stripcodes");
238 238
     }
239 239
 
240 240
     /** {@inheritDoc} */

+ 13
- 12
src/com/dmdirc/addons/identd/IdentdPlugin.java 파일 보기

@@ -80,6 +80,7 @@ public class IdentdPlugin extends BasePlugin implements ActionListener {
80 80
         config = identityController.getGlobalConfiguration();
81 81
     }
82 82
 
83
+    @Deprecated
83 84
     AggregateConfigProvider getConfig() {
84 85
         return config;
85 86
     }
@@ -96,7 +97,7 @@ public class IdentdPlugin extends BasePlugin implements ActionListener {
96 97
                 CoreActionType.SERVER_CONNECTERROR);
97 98
 
98 99
         myServer = new IdentdServer(this, serverManager);
99
-        if (config.getOptionBool(getDomain(), "advanced.alwaysOn")) {
100
+        if (config.getOptionBool(pluginInfo.getDomain(), "advanced.alwaysOn")) {
100 101
             myServer.startServer();
101 102
         }
102 103
     }
@@ -133,7 +134,7 @@ public class IdentdPlugin extends BasePlugin implements ActionListener {
133 134
             synchronized (connections) {
134 135
                 connections.remove(arguments[0]);
135 136
 
136
-                if (connections.isEmpty() && !config.getOptionBool(getDomain(),
137
+                if (connections.isEmpty() && !config.getOptionBool(pluginInfo.getDomain(),
137 138
                         "advanced.alwaysOn")) {
138 139
                     myServer.stopServer();
139 140
                 }
@@ -156,55 +157,55 @@ public class IdentdPlugin extends BasePlugin implements ActionListener {
156 157
                 + "those above them)");
157 158
 
158 159
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
159
-                getDomain(), "general.useUsername", "Use connection "
160
+                pluginInfo.getDomain(), "general.useUsername", "Use connection "
160 161
                 + "username rather than system username", "If this is enabled,"
161 162
                 + " the username for the connection will be used rather than " + "'" + System.
162 163
                 getProperty("user.name") + "'",
163 164
                 manager.getConfigManager(), manager.getIdentity()));
164 165
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
165
-                getDomain(), "general.useNickname", "Use connection "
166
+                pluginInfo.getDomain(), "general.useNickname", "Use connection "
166 167
                 + "nickname rather than system username", "If this is enabled, "
167 168
                 + "the nickname for the connection will be used rather than " + "'" + System.
168 169
                 getProperty("user.name") + "'",
169 170
                 manager.getConfigManager(), manager.getIdentity()));
170 171
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
171
-                getDomain(), "general.useCustomName", "Use custom name" + " all the time",
172
+                pluginInfo.getDomain(), "general.useCustomName", "Use custom name" + " all the time",
172 173
                 "If this is enabled, the name specified below" + " will be used all the time",
173 174
                 manager.getConfigManager(),
174 175
                 manager.getIdentity()));
175 176
         general.addSetting(new PreferencesSetting(PreferencesType.TEXT,
176
-                getDomain(), "general.customName", "Custom Name to use",
177
+                pluginInfo.getDomain(), "general.customName", "Custom Name to use",
177 178
                 "The custom name to use when 'Use Custom Name' is enabled",
178 179
                 manager.getConfigManager(), manager.getIdentity()));
179 180
 
180 181
         advanced.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
181
-                getDomain(), "advanced.alwaysOn", "Always have ident " + "port open",
182
+                pluginInfo.getDomain(), "advanced.alwaysOn", "Always have ident " + "port open",
182 183
                 "By default the identd only runs when there are "
183 184
                 + "active connection attempts. This overrides that.",
184 185
                 manager.getConfigManager(), manager.getIdentity()));
185 186
         advanced.addSetting(new PreferencesSetting(PreferencesType.INTEGER,
186
-                new PortValidator(), getDomain(), "advanced.port",
187
+                new PortValidator(), pluginInfo.getDomain(), "advanced.port",
187 188
                 "What port should the identd listen on", "Default port is 113,"
188 189
                 + " this is probably useless if changed unless you port forward"
189 190
                 + " ident to a different port", manager.getConfigManager(),
190 191
                 manager.getIdentity()));
191 192
         advanced.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
192
-                getDomain(), "advanced.useCustomSystem", "Use custom OS",
193
+                pluginInfo.getDomain(), "advanced.useCustomSystem", "Use custom OS",
193 194
                 "By default the plugin uses 'UNIX' or 'WIN32' as the system "
194 195
                 + "type, this can be overriden by enabling this.",
195 196
                 manager.getConfigManager(), manager.getIdentity()));
196 197
         advanced.addSetting(new PreferencesSetting(PreferencesType.TEXT,
197
-                getDomain(), "advanced.customSystem", "Custom OS to use",
198
+                pluginInfo.getDomain(), "advanced.customSystem", "Custom OS to use",
198 199
                 "The custom system to use when 'Use Custom System' is enabled",
199 200
                 manager.getConfigManager(), manager.getIdentity()));
200 201
         advanced.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
201
-                getDomain(), "advanced.isHiddenUser", "Respond to ident"
202
+                pluginInfo.getDomain(), "advanced.isHiddenUser", "Respond to ident"
202 203
                 + " requests with HIDDEN-USER error", "By default the plugin will"
203 204
                 + " give a USERID response, this can force an 'ERROR :"
204 205
                 + " HIDDEN-USER' response instead.", manager.getConfigManager(),
205 206
                 manager.getIdentity()));
206 207
         advanced.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
207
-                getDomain(), "advanced.isNoUser", "Respond to ident"
208
+                pluginInfo.getDomain(), "advanced.isNoUser", "Respond to ident"
208 209
                 + " requests with NO-USER error", "By default the plugin will"
209 210
                 + " give a USERID response, this can force an 'ERROR : NO-USER'"
210 211
                 + " response instead. (Overrides HIDDEN-USER)",

+ 30
- 29
src/com/dmdirc/addons/logging/LoggingPlugin.java 파일 보기

@@ -150,7 +150,7 @@ public class LoggingPlugin extends BaseCommandPlugin implements ActionListener,
150 150
     /** {@inheritDoc} */
151 151
     @Override
152 152
     public void domainUpdated() {
153
-        identity.setOption(getDomain(), "general.directory",
153
+        identity.setOption(pluginInfo.getDomain(), "general.directory",
154 154
                 identityController.getConfigurationDirectory() + "logs" + System.getProperty(
155 155
                 "file.separator"));
156 156
     }
@@ -174,7 +174,7 @@ public class LoggingPlugin extends BaseCommandPlugin implements ActionListener,
174 174
             }
175 175
         }
176 176
 
177
-        config.addChangeListener(getDomain(), this);
177
+        config.addChangeListener(pluginInfo.getDomain(), this);
178 178
 
179 179
         actionController.registerListener(this,
180 180
                 CoreActionType.CHANNEL_OPENED,
@@ -264,62 +264,62 @@ public class LoggingPlugin extends BaseCommandPlugin implements ActionListener,
264 264
                 "Advanced configuration for Logging plugin. You shouldn't need to edit this unless you know what you are doing.");
265 265
 
266 266
         general.addSetting(new PreferencesSetting(PreferencesType.DIRECTORY,
267
-                getDomain(), "general.directory", "Directory",
267
+                pluginInfo.getDomain(), "general.directory", "Directory",
268 268
                 "Directory for log files", manager.getConfigManager(),
269 269
                 manager.getIdentity()));
270 270
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
271
-                getDomain(), "general.networkfolders",
271
+                pluginInfo.getDomain(), "general.networkfolders",
272 272
                 "Separate logs by network",
273 273
                 "Should the files be stored in a sub-dir with the networks name?",
274 274
                 manager.getConfigManager(), manager.getIdentity()));
275 275
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
276
-                getDomain(), "general.addtime", "Timestamp logs",
276
+                pluginInfo.getDomain(), "general.addtime", "Timestamp logs",
277 277
                 "Should a timestamp be added to the log files?",
278 278
                 manager.getConfigManager(), manager.getIdentity()));
279 279
         general.addSetting(new PreferencesSetting(PreferencesType.TEXT,
280
-                getDomain(), "general.timestamp", "Timestamp format",
280
+                pluginInfo.getDomain(), "general.timestamp", "Timestamp format",
281 281
                 "The String to pass to 'SimpleDateFormat' to format the timestamp",
282 282
                 manager.getConfigManager(), manager.getIdentity()));
283 283
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
284
-                getDomain(), "general.stripcodes", "Strip Control Codes",
284
+                pluginInfo.getDomain(), "general.stripcodes", "Strip Control Codes",
285 285
                 "Remove known irc control codes from lines before saving?",
286 286
                 manager.getConfigManager(), manager.getIdentity()));
287 287
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
288
-                getDomain(), "general.channelmodeprefix",
288
+                pluginInfo.getDomain(), "general.channelmodeprefix",
289 289
                 "Show channel mode prefix", "Show the @,+ etc next to nicknames",
290 290
                 manager.getConfigManager(), manager.getIdentity()));
291 291
 
292 292
         backbuffer.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
293
-                getDomain(), "backbuffer.autobackbuffer", "Automatically display",
293
+                pluginInfo.getDomain(), "backbuffer.autobackbuffer", "Automatically display",
294 294
                 "Automatically display the backbuffer when a channel is joined",
295 295
                 manager.getConfigManager(), manager.getIdentity()));
296 296
         backbuffer.addSetting(new PreferencesSetting(PreferencesType.COLOUR,
297
-                getDomain(), "backbuffer.colour", "Colour to use for display",
297
+                pluginInfo.getDomain(), "backbuffer.colour", "Colour to use for display",
298 298
                 "Colour used when displaying the backbuffer",
299 299
                 manager.getConfigManager(), manager.getIdentity()));
300 300
         backbuffer.addSetting(new PreferencesSetting(PreferencesType.INTEGER,
301
-                getDomain(), "backbuffer.lines", "Number of lines to show",
301
+                pluginInfo.getDomain(), "backbuffer.lines", "Number of lines to show",
302 302
                 "Number of lines used when displaying backbuffer",
303 303
                 manager.getConfigManager(), manager.getIdentity()));
304 304
         backbuffer.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
305
-                getDomain(), "backbuffer.timestamp", "Show Formatter-Timestamp",
305
+                pluginInfo.getDomain(), "backbuffer.timestamp", "Show Formatter-Timestamp",
306 306
                 "Should the line be added to the frame with the timestamp from "
307 307
                 + "the formatter aswell as the file contents",
308 308
                 manager.getConfigManager(), manager.getIdentity()));
309 309
 
310 310
         advanced.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
311
-                getDomain(), "advanced.filenamehash", "Add Filename hash",
311
+                pluginInfo.getDomain(), "advanced.filenamehash", "Add Filename hash",
312 312
                 "Add the MD5 hash of the channel/client name to the filename. "
313 313
                 + "(This is used to allow channels with similar names "
314 314
                 + "(ie a _ not a  -) to be logged separately)",
315 315
                 manager.getConfigManager(), manager.getIdentity()));
316 316
 
317 317
         advanced.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
318
-                getDomain(), "advanced.usedate", "Use Date directories",
318
+                pluginInfo.getDomain(), "advanced.usedate", "Use Date directories",
319 319
                 "Should the log files be in separate directories based on the date?",
320 320
                 manager.getConfigManager(), manager.getIdentity()));
321 321
         advanced.addSetting(new PreferencesSetting(PreferencesType.TEXT,
322
-                getDomain(), "advanced.usedateformat", "Archive format",
322
+                pluginInfo.getDomain(), "advanced.usedateformat", "Archive format",
323 323
                 "The String to pass to 'SimpleDateFormat' to format the "
324 324
                 + "directory name(s) for archiving",
325 325
                 manager.getConfigManager(), manager.getIdentity()));
@@ -934,20 +934,21 @@ public class LoggingPlugin extends BaseCommandPlugin implements ActionListener,
934 934
 
935 935
     /** Updates cached settings. */
936 936
     public void setCachedSettings() {
937
-        networkfolders = config.getOptionBool(getDomain(), "general.networkfolders");
938
-        filenamehash = config.getOptionBool(getDomain(), "advanced.filenamehash");
939
-        addtime = config.getOptionBool(getDomain(), "general.addtime");
940
-        stripcodes = config.getOptionBool(getDomain(), "general.stripcodes");
941
-        channelmodeprefix = config.getOptionBool(getDomain(), "general.channelmodeprefix");
942
-        autobackbuffer = config.getOptionBool(getDomain(), "backbuffer.autobackbuffer");
943
-        backbufferTimestamp = config.getOptionBool(getDomain(), "backbuffer.timestamp");
944
-        usedate = config.getOptionBool(getDomain(), "advanced.usedate");
945
-        timestamp = config.getOption(getDomain(), "general.timestamp");
946
-        usedateformat = config.getOption(getDomain(), "advanced.usedateformat");
947
-        historyLines = config.getOptionInt(getDomain(), "history.lines");
948
-        colour = config.getOption(getDomain(), "backbuffer.colour");
949
-        backbufferLines = config.getOptionInt(getDomain(), "backbuffer.lines");
950
-        logDirectory = config.getOption(getDomain(), "general.directory");
937
+        networkfolders = config.getOptionBool(pluginInfo.getDomain(), "general.networkfolders");
938
+        filenamehash = config.getOptionBool(pluginInfo.getDomain(), "advanced.filenamehash");
939
+        addtime = config.getOptionBool(pluginInfo.getDomain(), "general.addtime");
940
+        stripcodes = config.getOptionBool(pluginInfo.getDomain(), "general.stripcodes");
941
+        channelmodeprefix = config.getOptionBool(pluginInfo.getDomain(),
942
+                "general.channelmodeprefix");
943
+        autobackbuffer = config.getOptionBool(pluginInfo.getDomain(), "backbuffer.autobackbuffer");
944
+        backbufferTimestamp = config.getOptionBool(pluginInfo.getDomain(), "backbuffer.timestamp");
945
+        usedate = config.getOptionBool(pluginInfo.getDomain(), "advanced.usedate");
946
+        timestamp = config.getOption(pluginInfo.getDomain(), "general.timestamp");
947
+        usedateformat = config.getOption(pluginInfo.getDomain(), "advanced.usedateformat");
948
+        historyLines = config.getOptionInt(pluginInfo.getDomain(), "history.lines");
949
+        colour = config.getOption(pluginInfo.getDomain(), "backbuffer.colour");
950
+        backbufferLines = config.getOptionInt(pluginInfo.getDomain(), "backbuffer.lines");
951
+        logDirectory = config.getOption(pluginInfo.getDomain(), "general.directory");
951 952
     }
952 953
 
953 954
     /** Open File. */

+ 3
- 3
src/com/dmdirc/addons/mediasource_vlc/VlcMediaSourcePlugin.java 파일 보기

@@ -205,7 +205,7 @@ public class VlcMediaSourcePlugin extends BasePlugin implements MediaSource {
205 205
                 "", "category-vlc");
206 206
 
207 207
         final PreferencesSetting setting = new PreferencesSetting(
208
-                PreferencesType.LABEL, getDomain(), "", "Instructions",
208
+                PreferencesType.LABEL, pluginInfo.getDomain(), "", "Instructions",
209 209
                 "Instructions", manager.getConfigManager(), manager.getIdentity());
210 210
         setting.setValue("<html><p>"
211 211
                 + "The VLC media source requires that VLC's web interface is"
@@ -231,7 +231,7 @@ public class VlcMediaSourcePlugin extends BasePlugin implements MediaSource {
231 231
                 + "'Save'<li>Restart VLC</ol></html>");
232 232
         general.addSetting(setting);
233 233
         general.addSetting(new PreferencesSetting(PreferencesType.TEXT,
234
-                getDomain(), "host", "Hostname and port",
234
+                pluginInfo.getDomain(), "host", "Hostname and port",
235 235
                 "The host and port that VLC listens on for web connections",
236 236
                 manager.getConfigManager(), manager.getIdentity()));
237 237
 
@@ -250,7 +250,7 @@ public class VlcMediaSourcePlugin extends BasePlugin implements MediaSource {
250 250
 
251 251
         try {
252 252
             final String host = identityController.getGlobalConfiguration()
253
-                    .getOption(getDomain(), "host");
253
+                    .getOption(pluginInfo.getDomain(), "host");
254 254
             res = Downloader.getPage("http://" + host + "/old/info.html");
255 255
             res2 = Downloader.getPage("http://" + host + "/old/");
256 256
             parseInformation(res, res2);

+ 9
- 9
src/com/dmdirc/addons/nickcolours/NickColourPlugin.java 파일 보기

@@ -91,15 +91,15 @@ public class NickColourPlugin extends BasePlugin {
91 91
         final PreferencesCategory colours = new PluginPreferencesCategory(
92 92
                 pluginInfo, "Colours",
93 93
                 "Set colours for specific nicknames.", UIUtilities.invokeAndWait(
94
-                        new Callable<NickColourPanel>() {
95
-                            /** {@inheritDoc} */
96
-                            @Override
97
-                            public NickColourPanel call() {
98
-                                return new NickColourPanel(mainFrame, iconManager, colourManager,
99
-                                        manager.getIdentity(), manager.getConfigManager(),
100
-                                        pluginInfo.getDomain());
101
-                            }
102
-                        }));
94
+                new Callable<NickColourPanel>() {
95
+            /** {@inheritDoc} */
96
+            @Override
97
+            public NickColourPanel call() {
98
+                return new NickColourPanel(mainFrame, iconManager, colourManager,
99
+                        manager.getIdentity(), manager.getConfigManager(),
100
+                        pluginInfo.getDomain());
101
+            }
102
+        }));
103 103
 
104 104
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
105 105
                 "ui", "shownickcoloursintext", "Show colours in text area",

+ 2
- 2
src/com/dmdirc/addons/nma/NotifyMyAndroidPlugin.java 파일 보기

@@ -72,12 +72,12 @@ public class NotifyMyAndroidPlugin extends BaseCommandPlugin {
72 72
                 "General configuration for Notify My Android plugin.");
73 73
 
74 74
         category.addSetting(new PreferencesSetting(
75
-                PreferencesType.TEXT, getDomain(), "apikey",
75
+                PreferencesType.TEXT, pluginInfo.getDomain(), "apikey",
76 76
                 "API Key", "Comma-separated list of NotifyMyAndroid API keys"
77 77
                 + " to be notified when the command is used.",
78 78
                 manager.getConfigManager(), manager.getIdentity()));
79 79
         category.addSetting(new PreferencesSetting(
80
-                PreferencesType.TEXT, getDomain(), "application",
80
+                PreferencesType.TEXT, pluginInfo.getDomain(), "application",
81 81
                 "Application", "Name of the application to report to "
82 82
                 + "NotifyMyAndroid",
83 83
                 manager.getConfigManager(), manager.getIdentity()));

+ 5
- 4
src/com/dmdirc/addons/notifications/NotificationsPlugin.java 파일 보기

@@ -116,9 +116,10 @@ public class NotificationsPlugin extends BaseCommandPlugin implements ActionList
116 116
 
117 117
     /** Loads the plugins settings. */
118 118
     private void loadSettings() {
119
-        if (identityController.getGlobalConfiguration().hasOptionString(getDomain(), "methodOrder")) {
120
-            order = identityController.getGlobalConfiguration().getOptionList(getDomain(),
121
-                    "methodOrder");
119
+        if (identityController.getGlobalConfiguration()
120
+                .hasOptionString(pluginInfo.getDomain(), "methodOrder")) {
121
+            order = identityController.getGlobalConfiguration().
122
+                    getOptionList(pluginInfo.getDomain(), "methodOrder");
122 123
         } else {
123 124
             order = new ArrayList<>();
124 125
         }
@@ -230,7 +231,7 @@ public class NotificationsPlugin extends BaseCommandPlugin implements ActionList
230 231
     protected void saveSettings(final List<String> newOrder) {
231 232
         order = newOrder;
232 233
         identityController.getUserSettings()
233
-                .setOption(getDomain(), "methodOrder", order);
234
+                .setOption(pluginInfo.getDomain(), "methodOrder", order);
234 235
     }
235 236
 
236 237
 }

Loading…
취소
저장