@Override public void mouseExit(MouseEvent e) { getTextWidget().removeMouseMoveListener(this); if (hyperlink != null) { linkExited(hyperlink); } }
public void mouseExit(MouseEvent e) { getTextWidget().removeMouseMoveListener(this); 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); } }
/** * 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); } }
/** * Notification a hyperlink has been entered. * * @param link * the link that was entered */ protected void linkEntered(IHyperlink link) { Control control = getTextWidget(); if (hyperlink != null) { linkExited(hyperlink); } hyperlink = link; hyperlink.linkEntered(); control.setCursor(getHandCursor()); control.redraw(); control.addMouseListener(this); }
/** * Notification a hyperlink has been entered. * * @param link * the link that was entered */ protected void linkEntered(IHyperlink link) { Control control = getTextWidget(); if (hyperlink != null) { linkExited(hyperlink); } hyperlink = link; hyperlink.linkEntered(); control.setCursor(getHandCursor()); control.redraw(); control.addMouseListener(this); }