this.textField.getCaret().setVisible(false);
// Handle URL.
this.urlListener = new URLClickedListener(textField);
this.textField.addMouseListener(this.urlListener);
this.urlCursorListener = new URLMouseCursorListener(this.parent, this.textField);
this.textField.addMouseMoveListener(this.urlCursorListener);
// Add copy context menu when hover a block of textField and right click the mouse.
Display display = Display.getDefault();
final Clipboard clipboard = new Clipboard(display);