|
@@ -41,6 +41,10 @@ import com.dmdirc.addons.ui_swing.commands.PopOutCommand;
|
41
|
41
|
import com.dmdirc.addons.ui_swing.commands.ServerSettings;
|
42
|
42
|
import com.dmdirc.addons.ui_swing.components.addonpanel.PluginPanel;
|
43
|
43
|
import com.dmdirc.addons.ui_swing.components.addonpanel.ThemePanel;
|
|
44
|
+import com.dmdirc.addons.ui_swing.components.statusbar.InviteLabel;
|
|
45
|
+import com.dmdirc.addons.ui_swing.components.statusbar.MessageLabel;
|
|
46
|
+import com.dmdirc.addons.ui_swing.components.statusbar.SwingStatusBar;
|
|
47
|
+import com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel;
|
44
|
48
|
import com.dmdirc.addons.ui_swing.dialogs.prefs.URLConfigPanel;
|
45
|
49
|
import com.dmdirc.addons.ui_swing.dialogs.prefs.UpdateConfigPanel;
|
46
|
50
|
import com.dmdirc.config.prefs.PreferencesDialogModel;
|
|
@@ -120,7 +124,7 @@ public class SwingModule {
|
120
|
124
|
public MainFrame call() {
|
121
|
125
|
return new MainFrame(
|
122
|
126
|
apple,
|
123
|
|
- controller,
|
|
127
|
+ swingController,
|
124
|
128
|
windowFactory,
|
125
|
129
|
lifecycleController,
|
126
|
130
|
globalConfig,
|
|
@@ -132,6 +136,23 @@ public class SwingModule {
|
132
|
136
|
});
|
133
|
137
|
}
|
134
|
138
|
|
|
139
|
+ @Provides
|
|
140
|
+ @Singleton
|
|
141
|
+ public SwingStatusBar getSwingStatusBar(
|
|
142
|
+ final SwingController swingController,
|
|
143
|
+ final MainFrame mainFrame,
|
|
144
|
+ final InviteLabel inviteLabel,
|
|
145
|
+ final UpdaterLabel updaterLabel,
|
|
146
|
+ final MessageLabel messageLabel) {
|
|
147
|
+ return UIUtilities.invokeAndWait(new Callable<SwingStatusBar>() {
|
|
148
|
+ @Override
|
|
149
|
+ public SwingStatusBar call() {
|
|
150
|
+ return new SwingStatusBar(swingController, mainFrame, inviteLabel, updaterLabel,
|
|
151
|
+ messageLabel);
|
|
152
|
+ }
|
|
153
|
+ });
|
|
154
|
+ }
|
|
155
|
+
|
135
|
156
|
@Provides
|
136
|
157
|
@Singleton
|
137
|
158
|
public URLHandler getURLHandler(
|