public long[] getSelection()
    {
        return new long[]{startPosition, endPosition};
    }
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