import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.linuxtools.tmf.core.component.TmfComponent;
+import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
import org.eclipse.linuxtools.tmf.core.event.TmfNoSuchFieldException;
// Checkpoint and page attributes
protected List<TmfTimeRange> fCheckPoints = new ArrayList<TmfTimeRange>(MAX_NUM_OF_MSG);
volatile protected int fCurrentPage = 0;
- protected TmfTimestamp fCurrentTime = null;
+ protected ITmfTimestamp fCurrentTime = null;
volatile protected boolean fIsSelect = false;
// Search attributes
/**
* @return returns the current time if available else null
*/
- public TmfTimestamp getCurrentTime() {
+ public ITmfTimestamp getCurrentTime() {
fLock.lock();
try {
if (fCurrentTime != null) {
fIndexRequest = new TmfEventRequest<TmfEvent>(TmfEvent.class, window, TmfDataRequest.ALL_DATA, DEFAULT_BLOCK_SIZE, ITmfDataRequest.ExecutionType.BACKGROUND) {
- private TmfTimestamp fFirstTime = null;
- private TmfTimestamp fLastTime = null;
+ private ITmfTimestamp fFirstTime = null;
+ private ITmfTimestamp fLastTime = null;
private int fNbSeqEvents = 0;
private List<ITmfSyncSequenceDiagramEvent> fSdEvents = new ArrayList<ITmfSyncSequenceDiagramEvent>(MAX_NUM_OF_MSG);
* @param time The timestamp
* @return page that contains the time
*/
- protected int getPage(TmfTimestamp time) {
+ protected int getPage(ITmfTimestamp time) {
int page;
int size;
fLock.lock();
* @param startTime The start time of time range.
* @return
*/
- protected TmfTimeRange getSignalTimeRange(TmfTimestamp startTime) {
+ protected TmfTimeRange getSignalTimeRange(ITmfTimestamp startTime) {
fLock.lock();
try {
TmfTimestamp initialEndOfWindow = new TmfTimestamp(startTime.getValue() + fInitialWindow, startTime.getScale(), startTime.getPrecision());
private IProgressMonitor fMonitor;
private boolean fIsFound = false;
- private TmfTimestamp fFoundTime = null;
+ private ITmfTimestamp fFoundTime = null;
/**
* Constructor
/**
* @return timestamp of found time.
*/
- public TmfTimestamp getFoundTime() {
+ public ITmfTimestamp getFoundTime() {
return fFoundTime;
}
}