boolean handleSelectedPreModify()
    {
        if (startPosition == endPosition || !isInserting) return false;

        content.delete(startPosition, endPosition - startPosition);
        endPosition = startPosition;

        return true;
    }
Gets the selection start and end points as long values

@return 2 elements long array, first one the start point (inclusive), second one the end point
        (exclusive)
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/HexEditControl.java