Import views plugins
[deliverable/tracecompass.git] / tmf / org.lttng.scope.tmf2.views.ui / src / org / lttng / scope / tmf2 / views / ui / jfx / testapp / DummyTrace.java
CommitLineData
735b1ca2
AM
1package org.lttng.scope.tmf2.views.ui.jfx.testapp;
2
3import org.eclipse.core.resources.IProject;
4import org.eclipse.core.resources.IResource;
5import org.eclipse.core.runtime.IStatus;
6import org.eclipse.jdt.annotation.Nullable;
7import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
8import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp;
9import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp;
10import org.eclipse.tracecompass.tmf.core.trace.ITmfContext;
11import org.eclipse.tracecompass.tmf.core.trace.TmfTrace;
12import org.eclipse.tracecompass.tmf.core.trace.location.ITmfLocation;
13import org.lttng.scope.tmf2.views.core.TimeRange;
14
15public class DummyTrace extends TmfTrace {
16
17// private static final long START_TIME = 100000;
18// private static final long END_TIME = 200000;
19
20 private static final long START_TIME = 1332170682440133097L;
21 private static final long END_TIME = 1332170692664579801L;
22
23 public DummyTrace() {
24 setTimeRange(TimeRange.of(START_TIME, END_TIME).toTmfTimeRange());
25 }
26
27 @Override
28 public ITmfTimestamp getInitialRangeOffset() {
29 return TmfTimestamp.fromNanos((long) ((END_TIME - START_TIME) * 0.1));
30 }
31
32 // ------------------------------------------------------------------------
33 // Stuff we don't use
34 // ------------------------------------------------------------------------
35
36 @Override
37 public @Nullable IStatus validate(@Nullable IProject project, @Nullable String path) {
38 return null;
39 }
40
41 @Override
42 public @Nullable IResource getResource() {
43 return null;
44 }
45
46 @Override
47 public @Nullable ITmfLocation getCurrentLocation() {
48 return null;
49 }
50
51 @Override
52 public double getLocationRatio(@Nullable ITmfLocation location) {
53 return 0;
54 }
55
56 @Override
57 public @Nullable ITmfContext seekEvent(@Nullable ITmfLocation location) {
58 return null;
59 }
60
61 @Override
62 public @Nullable ITmfContext seekEvent(double ratio) {
63 return null;
64 }
65
66 @Override
67 public @Nullable ITmfEvent parseEvent(@Nullable ITmfContext context) {
68 return null;
69 }
70
71}
This page took 0.025659 seconds and 5 git commands to generate.