public void run() { IHyperlink link = viewer.getHyperlink(); if (link != null) { link.linkActivated(); } }
@Override public void run() { IHyperlink link = viewer.getHyperlink(); if (link != null) { link.linkActivated(); } }
public void handleEvent(Event event) { if (hyperlink != null) { String selection = getTextWidget().getSelectionText(); if (selection.length() <= 0) { if (event.button == 1) { if (hyperlink instanceof IHyperlink2) { ((IHyperlink2) hyperlink).linkActivated(event); } else { hyperlink.linkActivated(); } } } } } };
@Override public void handleEvent(Event event) { if (hyperlink != null) { String selection = getTextWidget().getSelectionText(); if (selection.length() <= 0) { if (event.button == 1) { if (hyperlink instanceof IHyperlink2) { ((IHyperlink2) hyperlink).linkActivated(event); } else { hyperlink.linkActivated(); } } } } } };