tmf: Provide a static method to retrieve state systems
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.ui / src / org / eclipse / linuxtools / internal / lttng2 / kernel / ui / views / resources / ResourcesEntry.java
index a4769b801ebbe04e95b49c6df3867adda8578a45..c7a8aee7e7af617af202af868d9b8e386eeb542a 100644 (file)
@@ -13,6 +13,7 @@
 
 package org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeGraphEntry;
@@ -37,7 +38,7 @@ public class ResourcesEntry extends TimeGraphEntry implements Comparable<ITimeGr
     }
 
     private final int fId;
-    private final ITmfTrace fTrace;
+    private final @NonNull ITmfTrace fTrace;
     private final Type fType;
     private final int fQuark;
 
@@ -59,7 +60,8 @@ public class ResourcesEntry extends TimeGraphEntry implements Comparable<ITimeGr
      * @param id
      *            The id of this entry
      */
-    public ResourcesEntry(int quark, ITmfTrace trace, String name, long startTime, long endTime, Type type, int id) {
+    public ResourcesEntry(int quark, @NonNull ITmfTrace trace, String name,
+            long startTime, long endTime, Type type, int id) {
         super(name, startTime, endTime);
         fId = id;
         fTrace = trace;
@@ -81,7 +83,8 @@ public class ResourcesEntry extends TimeGraphEntry implements Comparable<ITimeGr
      * @param id
      *            The id of this entry
      */
-    public ResourcesEntry(ITmfTrace trace, String name, long startTime, long endTime, int id) {
+    public ResourcesEntry(@NonNull ITmfTrace trace, String name,
+            long startTime, long endTime, int id) {
         this(-1, trace, name, startTime, endTime, Type.NULL, id);
     }
 
@@ -101,7 +104,8 @@ public class ResourcesEntry extends TimeGraphEntry implements Comparable<ITimeGr
      * @param id
      *            The id of this entry
      */
-    public ResourcesEntry(int quark, ITmfTrace trace, long startTime, long endTime, Type type, int id) {
+    public ResourcesEntry(int quark, @NonNull ITmfTrace trace,
+            long startTime, long endTime, Type type, int id) {
         this(quark, trace, type.toString() + " " + id, startTime, endTime, type, id); //$NON-NLS-1$
     }
 
@@ -119,7 +123,7 @@ public class ResourcesEntry extends TimeGraphEntry implements Comparable<ITimeGr
      *
      * @return the entry's trace
      */
-    public ITmfTrace getTrace() {
+    public @NonNull ITmfTrace getTrace() {
         return fTrace;
     }
 
This page took 0.02514 seconds and 5 git commands to generate.