|
@@ -40,6 +40,10 @@ import com.dmdirc.addons.ui_swing.commands.PopOutCommand;
|
40
|
40
|
import com.dmdirc.addons.ui_swing.commands.ServerSettings;
|
41
|
41
|
import com.dmdirc.addons.ui_swing.components.addonpanel.PluginPanel;
|
42
|
42
|
import com.dmdirc.addons.ui_swing.components.addonpanel.ThemePanel;
|
|
43
|
+import com.dmdirc.addons.ui_swing.components.statusbar.InviteLabel;
|
|
44
|
+import com.dmdirc.addons.ui_swing.components.statusbar.MessageLabel;
|
|
45
|
+import com.dmdirc.addons.ui_swing.components.statusbar.SwingStatusBar;
|
|
46
|
+import com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel;
|
43
|
47
|
import com.dmdirc.addons.ui_swing.dialogs.prefs.URLConfigPanel;
|
44
|
48
|
import com.dmdirc.addons.ui_swing.dialogs.prefs.UpdateConfigPanel;
|
45
|
49
|
import com.dmdirc.config.prefs.PreferencesDialogModel;
|
|
@@ -165,6 +169,23 @@ public class SwingModule {
|
165
|
169
|
*
|
166
|
170
|
* @return The URL handler to use.
|
167
|
171
|
*/
|
|
172
|
+ @Provides
|
|
173
|
+ @Singleton
|
|
174
|
+ public SwingStatusBar getSwingStatusBar(
|
|
175
|
+ final SwingController swingController,
|
|
176
|
+ final MainFrame mainFrame,
|
|
177
|
+ final InviteLabel inviteLabel,
|
|
178
|
+ final UpdaterLabel updaterLabel,
|
|
179
|
+ final MessageLabel messageLabel) {
|
|
180
|
+ return UIUtilities.invokeAndWait(new Callable<SwingStatusBar>() {
|
|
181
|
+ @Override
|
|
182
|
+ public SwingStatusBar call() {
|
|
183
|
+ return new SwingStatusBar(swingController, mainFrame, inviteLabel, updaterLabel,
|
|
184
|
+ messageLabel);
|
|
185
|
+ }
|
|
186
|
+ });
|
|
187
|
+ }
|
|
188
|
+
|
168
|
189
|
@Provides
|
169
|
190
|
@Singleton
|
170
|
191
|
public URLHandler getURLHandler(
|