Browse Source

Swing UI now exports getController

Fixes issue 4420

Change-Id: I5c86c18cfa048f19f1e08c8bccec60ac08e30f86
Reviewed-on: http://gerrit.dmdirc.com/1470
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.5
Chris Smith 13 years ago
parent
commit
5842ac8d0d

+ 11
- 0
src/com/dmdirc/addons/ui_swing/SwingController.java View File

@@ -945,4 +945,15 @@ public class SwingController extends Plugin implements Serializable,
945 945
             return windows;
946 946
         }
947 947
     }
948
+
949
+    /**
950
+     * Returns an instance of SwingController. This method is exported for use
951
+     * in other plugins.
952
+     *
953
+     * @return A reference to this SwingController.
954
+     */
955
+    public UIController getController() {
956
+        return this;
957
+    }
958
+
948 959
 }

+ 4
- 1
src/com/dmdirc/addons/ui_swing/plugin.config View File

@@ -39,4 +39,7 @@ defaults:
39 39
     desktopbackground=dmdirc://com/dmdirc/res/background.png
40 40
     desktopbackgroundoption=CENTER
41 41
     showjrewarning=true
42
-    showtreeexpands=true
42
+    showtreeexpands=true
43
+
44
+exports:
45
+  getController in com.dmdirc.addons.ui_swing.SwingController as getController

Loading…
Cancel
Save