blob: 755b1c958ed38541a987b006d47b1d7f07f0f382 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2017 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.tracecompass.tmf.ui.views;
import org.eclipse.tracecompass.tmf.core.signal.TmfSignalHandler;
import org.eclipse.tracecompass.tmf.core.signal.TmfWindowRangeUpdatedSignal;
/**
* Interface to be implemented by classes who can reset their time ranges to
* some values, for instance the range of the trace.
*
* @author Matthew Khouzam
* @since 3.2
*/
public interface ITimeReset {
/**
* Reset the start and end times and broadcast the signal to all classes with
* {@link TmfSignalHandler} for {@link TmfWindowRangeUpdatedSignal}
*/
default void resetStartFinishTime() {
resetStartFinishTime(true);
}
/**
* Reset the start and end times.
*
* @param broadcast
* if true, broadcast the signal, else only apply to this view
*/
void resetStartFinishTime(boolean broadcast);
}