|
@@ -25,8 +25,11 @@ package com.dmdirc.actions;
|
25
|
25
|
import com.dmdirc.config.prefs.PreferencesSetting;
|
26
|
26
|
|
27
|
27
|
import java.util.ArrayList;
|
|
28
|
+import java.util.Collection;
|
|
29
|
+import java.util.HashMap;
|
28
|
30
|
import java.util.Iterator;
|
29
|
31
|
import java.util.List;
|
|
32
|
+import java.util.Map;
|
30
|
33
|
|
31
|
34
|
/**
|
32
|
35
|
* Represents a group of actions, along with their meta-data.
|
|
@@ -61,7 +64,8 @@ public class ActionGroup implements Iterable<Action> {
|
61
|
64
|
private int version = -1;
|
62
|
65
|
|
63
|
66
|
/** A list of settings used by this action group. */
|
64
|
|
- private final List<PreferencesSetting> settings = new ArrayList<PreferencesSetting>();
|
|
67
|
+ private final Map<String, PreferencesSetting> settings
|
|
68
|
+ = new HashMap<String, PreferencesSetting>();
|
65
|
69
|
|
66
|
70
|
/**
|
67
|
71
|
* Creates a new instance of ActionGroup.
|
|
@@ -120,11 +124,11 @@ public class ActionGroup implements Iterable<Action> {
|
120
|
124
|
}
|
121
|
125
|
|
122
|
126
|
/**
|
123
|
|
- * Retrieves a list of settings used by this action group.
|
|
127
|
+ * Retrieves a map settings used by this action group.
|
124
|
128
|
*
|
125
|
|
- * @return A list of settings used by this action group.
|
|
129
|
+ * @return A map of setting names to values
|
126
|
130
|
*/
|
127
|
|
- public List<PreferencesSetting> getSettings() {
|
|
131
|
+ public Map<String, PreferencesSetting> getSettings() {
|
128
|
132
|
return settings;
|
129
|
133
|
}
|
130
|
134
|
|