public static long[] getLongSelection(SelectionEvent event)
    {
        return new long[]{((long) event.width) << 32 | (event.x & 0x0ffffffffL),
            ((long) event.height) << 32 | (event.y & 0x0ffffffffL)};
    }
Get long selection start and end points. Helper method for long selection listeners.
The start point is formed by event.width as the most significant int and event.x as the least
significant int. The end point is similarly formed by event.height and event.y
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/HexEditControl.java