Browse 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 14 years ago
parent
commit
968f461507
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/com/dmdirc/addons/ui_swing/components/frames/TextFrame.java

+ 3
- 0
src/com/dmdirc/addons/ui_swing/components/frames/TextFrame.java View File

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

Loading…
Cancel
Save