public void paste()
    {
        if (!myClipboard.hasContents() || this.isReadOnly()) {
            return;
        }

        handleSelectedPreModify();
        long caretPos = getCaretPos();
        long total = myClipboard.getContents(content, caretPos, isInserting);
        startPosition = caretPos;
        endPosition = caretPos + total;
        caretStickToStart = false;
        redrawTextAreas(true);
        restoreStateAfterModify();
    }
Pastes the clipboard content. The result depends on which insertion mode is currently active:
Insert mode replaces the selection with the DND.CLIPBOARD clipboard contents or, if there is no
selection, inserts at the current caret offset.
Overwrite mode replaces contents at the current caret offset, unless pasting would overflow the
content length, in which case does nothing.
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/HexEditControl.java