- if (x >= 0 && fDragState == DRAG_NONE) {
- long time = getTimeAtX(x);
- if (time >= 0) {
- if (tdp instanceof ITimeDataProviderConverter) {
- time = ((ITimeDataProviderConverter) tdp).convertTime(time);
- }
- long selectionBegin = tdp.getSelectionBegin();
- long selectionEnd = tdp.getSelectionEnd();
- message.append(NLS.bind("T: {0}{1} T1: {2}{3}", //$NON-NLS-1$
- new Object[] {
- tf == TimeFormat.CALENDAR ? Utils.formatDate(time) + ' ' : "", //$NON-NLS-1$
- Utils.formatTime(time, tf, res),
- tf == TimeFormat.CALENDAR ? Utils.formatDate(Math.min(selectionBegin, selectionEnd)) + ' ' : "", //$NON-NLS-1$
- Utils.formatTime(Math.min(selectionBegin, selectionEnd), tf, res)
- }));
- if (selectionBegin != selectionEnd) {
- message.append(NLS.bind(" T2: {0}{1} \u0394: {2}", //$NON-NLS-1$
+ if ((x >= 0 || x == STATUS_WITHOUT_CURSOR_TIME) && fDragState == DRAG_NONE) {
+ if (x != STATUS_WITHOUT_CURSOR_TIME) {
+ long time = getTimeAtX(x);
+ if (time >= 0) {
+ if (tdp instanceof ITimeDataProviderConverter) {
+ time = ((ITimeDataProviderConverter) tdp).convertTime(time);
+ }
+ message.append(NLS.bind("T: {0}{1} ", //$NON-NLS-1$