Browse Source

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 years ago
parent
commit
0709bf5bc4

+ 13
- 13
src/com/dmdirc/addons/freedesktop_notifications/FreeDesktopNotificationsPlugin.java View File

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

+ 13
- 12
src/com/dmdirc/addons/identd/IdentdPlugin.java View File

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

+ 30
- 29
src/com/dmdirc/addons/logging/LoggingPlugin.java View File

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

+ 3
- 3
src/com/dmdirc/addons/mediasource_vlc/VlcMediaSourcePlugin.java View File

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

+ 9
- 9
src/com/dmdirc/addons/nickcolours/NickColourPlugin.java View File

91
         final PreferencesCategory colours = new PluginPreferencesCategory(
91
         final PreferencesCategory colours = new PluginPreferencesCategory(
92
                 pluginInfo, "Colours",
92
                 pluginInfo, "Colours",
93
                 "Set colours for specific nicknames.", UIUtilities.invokeAndWait(
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
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
104
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
105
                 "ui", "shownickcoloursintext", "Show colours in text area",
105
                 "ui", "shownickcoloursintext", "Show colours in text area",

+ 2
- 2
src/com/dmdirc/addons/nma/NotifyMyAndroidPlugin.java View File

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

+ 5
- 4
src/com/dmdirc/addons/notifications/NotificationsPlugin.java View File

116
 
116
 
117
     /** Loads the plugins settings. */
117
     /** Loads the plugins settings. */
118
     private void loadSettings() {
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
         } else {
123
         } else {
123
             order = new ArrayList<>();
124
             order = new ArrayList<>();
124
         }
125
         }
230
     protected void saveSettings(final List<String> newOrder) {
231
     protected void saveSettings(final List<String> newOrder) {
231
         order = newOrder;
232
         order = newOrder;
232
         identityController.getUserSettings()
233
         identityController.getUserSettings()
233
-                .setOption(getDomain(), "methodOrder", order);
234
+                .setOption(pluginInfo.getDomain(), "methodOrder", order);
234
     }
235
     }
235
 
236
 
236
 }
237
 }

Loading…
Cancel
Save