1 /*******************************************************************************
2 * Copyright (c) 2009, 2014 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Francois Chouinard - Initial API and implementation
11 * Patrick Tasse - Deprecate current time
12 *******************************************************************************/
14 package org
.eclipse
.tracecompass
.tmf
.core
.signal
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.TmfTimeRange
;
19 * A new time range has been selected.
21 * This is the visible (zoom) time range. To synchronize on the selection range,
22 * use {@link TmfTimeSynchSignal}.
24 * @author Francois Chouinard
26 public class TmfRangeSynchSignal
extends TmfSignal
{
28 private final TmfTimeRange fCurrentRange
;
34 * Object sending this signal
38 public TmfRangeSynchSignal(Object source
, TmfTimeRange range
) {
40 fCurrentRange
= range
;
44 * @return This signal's time range
46 public TmfTimeRange
getCurrentRange() {
51 public String
toString() {
52 StringBuilder sb
= new StringBuilder("TmfRangeSynchSignal [source="); //$NON-NLS-1$
54 if (getSource() != null) {
55 sb
.append(getSource().toString());
57 sb
.append("null"); //$NON-NLS-1$
60 sb
.append(", range="); //$NON-NLS-1$
62 if (fCurrentRange
!= null) {
63 sb
.append(fCurrentRange
.toString());
65 sb
.append("null"); //$NON-NLS-1$