import org.eclipse.swt.widgets.Shell;
import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp;
import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimeRange;
+import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp;
import org.eclipse.tracecompass.tmf.ui.views.uml2sd.util.Messages;
/**
* @param max the scale max
*/
public void showToolTip(ITmfTimestamp value, ITmfTimestamp min, ITmfTimestamp max) {
- fMinMaxRange = new TmfTimeRange(min, max);
+ ITmfTimestamp minTime = min;
+ ITmfTimestamp maxTime = max;
+ if (minTime == null) {
+ minTime = TmfTimestamp.BIG_BANG;
+ }
+ if (maxTime == null) {
+ maxTime = TmfTimestamp.BIG_CRUNCH;
+ }
+ fMinMaxRange = new TmfTimeRange(minTime, maxTime);
fCurrentValue = value;
int w = fToolTipShell.getBounds().width;