|
@@ -37,8 +37,6 @@ import com.dmdirc.ui.IconManager;
|
37
|
37
|
import com.dmdirc.ui.core.dialogs.sslcertificate.SSLCertificateDialogModel;
|
38
|
38
|
|
39
|
39
|
import java.awt.Window;
|
40
|
|
-import java.awt.event.ActionEvent;
|
41
|
|
-import java.awt.event.ActionListener;
|
42
|
40
|
import java.security.cert.CertificateException;
|
43
|
41
|
import java.security.cert.X509Certificate;
|
44
|
42
|
import java.util.Collection;
|
|
@@ -55,8 +53,7 @@ import net.engio.mbassy.listener.Handler;
|
55
|
53
|
/**
|
56
|
54
|
* The ServerFrame is the MDI window that shows server messages to the user.
|
57
|
55
|
*/
|
58
|
|
-public final class ServerFrame extends InputTextFrame implements
|
59
|
|
- ActionListener, CertificateProblemListener {
|
|
56
|
+public final class ServerFrame extends InputTextFrame implements CertificateProblemListener {
|
60
|
57
|
|
61
|
58
|
/** Serial version UID. */
|
62
|
59
|
private static final long serialVersionUID = 9;
|
|
@@ -101,7 +98,7 @@ public final class ServerFrame extends InputTextFrame implements
|
101
|
98
|
*/
|
102
|
99
|
private void initComponents() {
|
103
|
100
|
settingsMI = new JMenuItem("Settings");
|
104
|
|
- settingsMI.addActionListener(this);
|
|
101
|
+ settingsMI.addActionListener(l -> dialogProvider.displayOrRequestFocus(connection));
|
105
|
102
|
|
106
|
103
|
setLayout(new MigLayout("ins 0, fill, hidemode 3, wrap 1"));
|
107
|
104
|
add(getTextPane(), "grow, push");
|
|
@@ -109,18 +106,6 @@ public final class ServerFrame extends InputTextFrame implements
|
109
|
106
|
add(inputPanel, "growx, pushx");
|
110
|
107
|
}
|
111
|
108
|
|
112
|
|
- /**
|
113
|
|
- * {@inheritDoc}.
|
114
|
|
- *
|
115
|
|
- * @param actionEvent Action event
|
116
|
|
- */
|
117
|
|
- @Override
|
118
|
|
- public void actionPerformed(final ActionEvent actionEvent) {
|
119
|
|
- if (actionEvent.getSource() == settingsMI) {
|
120
|
|
- dialogProvider.displayOrRequestFocus(connection);
|
121
|
|
- }
|
122
|
|
- }
|
123
|
|
-
|
124
|
109
|
@Override
|
125
|
110
|
public PopupType getNicknamePopupType() {
|
126
|
111
|
return PopupType.CHAN_NICK;
|