1 package org
.lttng
.scope
.tmf2
.views
.ui
.jfx
.testapp
;
3 import org
.eclipse
.core
.resources
.IProject
;
4 import org
.eclipse
.core
.resources
.IResource
;
5 import org
.eclipse
.core
.runtime
.IStatus
;
6 import org
.eclipse
.jdt
.annotation
.Nullable
;
7 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEvent
;
8 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.ITmfTimestamp
;
9 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.TmfTimestamp
;
10 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfContext
;
11 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.TmfTrace
;
12 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.location
.ITmfLocation
;
13 import org
.lttng
.scope
.tmf2
.views
.core
.TimeRange
;
15 public class DummyTrace
extends TmfTrace
{
17 // private static final long START_TIME = 100000;
18 // private static final long END_TIME = 200000;
20 private static final long START_TIME
= 1332170682440133097L;
21 private static final long END_TIME
= 1332170692664579801L;
24 setTimeRange(TimeRange
.of(START_TIME
, END_TIME
).toTmfTimeRange());
28 public ITmfTimestamp
getInitialRangeOffset() {
29 return TmfTimestamp
.fromNanos((long) ((END_TIME
- START_TIME
) * 0.1));
32 // ------------------------------------------------------------------------
34 // ------------------------------------------------------------------------
37 public @Nullable IStatus
validate(@Nullable IProject project
, @Nullable String path
) {
42 public @Nullable IResource
getResource() {
47 public @Nullable ITmfLocation
getCurrentLocation() {
52 public double getLocationRatio(@Nullable ITmfLocation location
) {
57 public @Nullable ITmfContext
seekEvent(@Nullable ITmfLocation location
) {
62 public @Nullable ITmfContext
seekEvent(double ratio
) {
67 public @Nullable ITmfEvent
parseEvent(@Nullable ITmfContext context
) {
This page took 0.032162 seconds and 5 git commands to generate.