Parcourir la source

Fixes issue 2932: The ability for actions to be triggered when stuff gets clicked (like links to channels in windows) would be awesome

This depends on http://gerrit.dmdirc.com/#change,333

Change-Id: I9da837a234963dacc8e46b019330985b105b10bf
Reviewed-on: http://gerrit.dmdirc.com/334
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
Tested-by: Gregory Holmes <greboid@dmdirc.com>
tags/0.6.3
Gregory Holmes il y a 14 ans
Parent
révision
968f461507

+ 3
- 0
src/com/dmdirc/addons/ui_swing/components/frames/TextFrame.java Voir le fichier

@@ -899,12 +899,15 @@ public abstract class TextFrame extends JInternalFrame implements Window,
899 899
                 if (type == MouseClickType.CLICKED) {
900 900
                     switch (clickType) {
901 901
                         case CHANNEL:
902
+                            ActionManager.processEvent(CoreActionType.LINK_CHANNEL_CLICKED, null, attribute);
902 903
                             frameParent.getServer().join(attribute);
903 904
                             break;
904 905
                         case HYPERLINK:
906
+                            ActionManager.processEvent(CoreActionType.LINK_URL_CLICKED, null, attribute);
905 907
                             URLHandler.getURLHander().launchApp(attribute);
906 908
                             break;
907 909
                         case NICKNAME:
910
+                            ActionManager.processEvent(CoreActionType.LINK_NICKNAME_CLICKED, null, attribute);
908 911
                             if (getContainer().getServer().hasQuery(attribute)) {
909 912
                                 getContainer().getServer().getQuery(attribute).
910 913
                                         activateFrame();

Chargement…
Annuler
Enregistrer