|
@@ -78,8 +78,7 @@ public class NickColourManager {
|
78
|
78
|
/** Event bus to subscribe to events on . */
|
79
|
79
|
private final DMDircMBassador eventBus;
|
80
|
80
|
/** The plugin's info. */
|
81
|
|
- // TODO: Should probably make this final and introduce a factory to create NickColourManagers.
|
82
|
|
- private PluginInfo pluginInfo;
|
|
81
|
+ private final PluginInfo pluginInfo;
|
83
|
82
|
/** "Random" colours to use to colour nicknames. */
|
84
|
83
|
private String[] randColours = {
|
85
|
84
|
"E90E7F", "8E55E9", "B30E0E", "18B33C", "58ADB3", "9E54B3", "B39875", "3176B3",};
|
|
@@ -94,12 +93,14 @@ public class NickColourManager {
|
94
|
93
|
@GlobalConfig final AggregateConfigProvider globalConfig,
|
95
|
94
|
final IconManager iconManager,
|
96
|
95
|
@MainWindow final Provider<Window> mainWindowProvider,
|
|
96
|
+ final PluginInfo pluginInfo,
|
97
|
97
|
final DMDircMBassador eventBus) {
|
98
|
98
|
this.domain = domain;
|
99
|
99
|
this.globalConfig = globalConfig;
|
100
|
100
|
this.colourManager = colourManager;
|
101
|
101
|
this.iconManager = iconManager;
|
102
|
102
|
this.mainWindowProvider = mainWindowProvider;
|
|
103
|
+ this.pluginInfo = pluginInfo;
|
103
|
104
|
this.eventBus = eventBus;
|
104
|
105
|
configBinder = globalConfig.getBinder().withDefaultDomain(domain);
|
105
|
106
|
}
|
|
@@ -277,10 +278,6 @@ public class NickColourManager {
|
277
|
278
|
randColours = value.toArray(new String[value.size()]);
|
278
|
279
|
}
|
279
|
280
|
|
280
|
|
- public void setPluginInfo(final PluginInfo pluginInfo) {
|
281
|
|
- this.pluginInfo = pluginInfo;
|
282
|
|
- }
|
283
|
|
-
|
284
|
281
|
@Handler
|
285
|
282
|
public void handlePrefsOpened(final ClientPrefsOpenedEvent event) {
|
286
|
283
|
final PreferencesCategory general = new PluginPreferencesCategory(
|