void setCaretsSize(boolean insert)
    {
        isInserting = insert;
        int width = 0;
        int height = hexText.getCaret().getSize().y;
        if (!isInserting)
            width = fontCharWidth;

        hexText.getCaret().setSize(width, height);
        previewText.getCaret().setSize(width, height);
    }
Sets the selection from start to end.
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/HexEditControl.java