@Override public boolean isEnabled() { return viewer.getHyperlink() != null; }
public boolean isEnabled() { return viewer.getHyperlink() != null; }
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(); } }
/** * The cursor has just be moved to the given offset, the mouse has hovered * over the given offset. Update link rendering. * * @param offset */ protected void updateLinks(int offset) { if (offset >= 0) { IHyperlink link = getHyperlink(offset); if (link != null) { if (link.equals(hyperlink)) { return; } linkEntered(link); return; } } if (hyperlink != null) { linkExited(hyperlink); } }
/** * The cursor has just be moved to the given offset, the mouse has hovered * over the given offset. Update link rendering. * * @param offset */ protected void updateLinks(int offset) { if (offset >= 0) { IHyperlink link = getHyperlink(offset); if (link != null) { if (link.equals(hyperlink)) { return; } linkEntered(link); return; } } if (hyperlink != null) { linkExited(hyperlink); } }