|
@@ -40,6 +40,7 @@ import java.awt.Window;
|
40
|
40
|
import javax.inject.Inject;
|
41
|
41
|
import javax.swing.JButton;
|
42
|
42
|
import javax.swing.JTabbedPane;
|
|
43
|
+import javax.swing.UIManager;
|
43
|
44
|
import javax.swing.WindowConstants;
|
44
|
45
|
|
45
|
46
|
import net.miginfocom.layout.LayoutUtil;
|
|
@@ -55,7 +56,6 @@ public class AboutDialog extends StandardDialog {
|
55
|
56
|
private static final long serialVersionUID = 5;
|
56
|
57
|
private final URLHandler urlHandler;
|
57
|
58
|
private final AboutDialogModel model;
|
58
|
|
- private final SwingController controller;
|
59
|
59
|
private final DMDircMBassador eventBus;
|
60
|
60
|
private final AggregateConfigProvider config;
|
61
|
61
|
private final PluginInfo pluginInfo;
|
|
@@ -67,12 +67,10 @@ public class AboutDialog extends StandardDialog {
|
67
|
67
|
final AboutDialogModel model,
|
68
|
68
|
final URLHandler urlHandler,
|
69
|
69
|
final DMDircMBassador eventBus,
|
70
|
|
- final SwingController controller,
|
71
|
70
|
@PluginDomain(SwingController.class) final PluginInfo pluginInfo) {
|
72
|
71
|
super(parentWindow, ModalityType.MODELESS);
|
73
|
72
|
this.urlHandler = urlHandler;
|
74
|
73
|
this.model = model;
|
75
|
|
- this.controller = controller;
|
76
|
74
|
this.eventBus = eventBus;
|
77
|
75
|
this.config = config;
|
78
|
76
|
this.pluginInfo = pluginInfo;
|
|
@@ -110,7 +108,7 @@ public class AboutDialog extends StandardDialog {
|
110
|
108
|
public void handleInfoRequest(final ClientInfoRequestEvent event) {
|
111
|
109
|
event.addInfoItem(InfoItem.create("Swing UI Version",
|
112
|
110
|
pluginInfo.getMetaData().getVersion().toString()),
|
113
|
|
- InfoItem.create("Look and Feel", SwingController.getLookAndFeel()),
|
|
111
|
+ InfoItem.create("Look and Feel", UIManager.getLookAndFeel().getName()),
|
114
|
112
|
InfoItem.create("MiG Layout Version", LayoutUtil.getVersion())
|
115
|
113
|
);
|
116
|
114
|
}
|