|
@@ -28,6 +28,7 @@ import com.dmdirc.addons.ui_swing.MainFrame;
|
28
|
28
|
import com.dmdirc.addons.ui_swing.SwingController;
|
29
|
29
|
import com.dmdirc.addons.ui_swing.components.LockedLayer;
|
30
|
30
|
import com.dmdirc.addons.ui_swing.dialogs.StandardDialog;
|
|
31
|
+import com.dmdirc.interfaces.config.IdentityController;
|
31
|
32
|
import com.dmdirc.ui.core.util.URLHandler;
|
32
|
33
|
|
33
|
34
|
import java.awt.color.ColorSpace;
|
|
@@ -83,6 +84,7 @@ public class ServerListDialog extends StandardDialog implements
|
83
|
84
|
* @param serverListModel The model to use for the dialog.
|
84
|
85
|
* @param mainFrame The main frame that owns the dialog.
|
85
|
86
|
* @param settingsPanel The panel to use for settings.
|
|
87
|
+ * @param identityController Controller to use to get profiles.
|
86
|
88
|
*/
|
87
|
89
|
@Inject
|
88
|
90
|
public ServerListDialog(
|
|
@@ -91,7 +93,8 @@ public class ServerListDialog extends StandardDialog implements
|
91
|
93
|
final PerformWrapper performWrapper,
|
92
|
94
|
final ServerListModel serverListModel,
|
93
|
95
|
final MainFrame mainFrame,
|
94
|
|
- final Settings settingsPanel) {
|
|
96
|
+ final Settings settingsPanel,
|
|
97
|
+ final IdentityController identityController) {
|
95
|
98
|
super(mainFrame, ModalityType.MODELESS);
|
96
|
99
|
|
97
|
100
|
setTitle("Server List");
|
|
@@ -112,7 +115,7 @@ public class ServerListDialog extends StandardDialog implements
|
112
|
115
|
infoLock = new LockedLayer<>(new BufferedImageOpEffect(
|
113
|
116
|
new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
|
114
|
117
|
null)));
|
115
|
|
- profileLayer = new JXLayer<>(new Profiles(model, controller), profileLock);
|
|
118
|
+ profileLayer = new JXLayer<>(new Profiles(model, identityController), profileLock);
|
116
|
119
|
performLayer = new JXLayer<>(new Perform(controller, performWrapper, model), performLock);
|
117
|
120
|
settingsLayer = new JXLayer<>(settingsPanel, settingsLock);
|
118
|
121
|
infoLayer = new JXLayer<>(new Info(model, urlHandler), infoLock);
|