lttng.control: Replacing isKernel with an enum for the domain type
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / model / impl / TraceEventComponent.java
index 99966ea31199c2dc51ffe0ca8643209460493c56..33b632f83dab97ec88606afd12c6f1b052044f25 100644 (file)
@@ -17,6 +17,7 @@ import java.util.List;
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.swt.graphics.Image;
+import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceDomainType;
 import org.eclipse.tracecompass.internal.lttng2.control.core.model.IEventInfo;
 import org.eclipse.tracecompass.internal.lttng2.control.core.model.LogLevelType;
 import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceEnablement;
@@ -252,10 +253,10 @@ public class TraceEventComponent extends TraceControlComponent {
     }
 
     /**
-     * @return if domain is kernel or UST
+     * @return the domain type ({@link TraceDomainType})
      */
-    public boolean isKernel() {
-        return ((TraceChannelComponent)getParent()).isKernel();
+    public TraceDomainType getDomain() {
+        return ((TraceChannelComponent)getParent()).getDomain();
     }
 
     // ------------------------------------------------------------------------
@@ -275,6 +276,6 @@ public class TraceEventComponent extends TraceControlComponent {
     public void addContexts(List<String> contexts, IProgressMonitor monitor)
             throws ExecutionException {
         getControlService().addContexts(getSessionName(), getChannelName(),
-                getName(), isKernel(), contexts, monitor);
+                getName(), getDomain(), contexts, monitor);
     }
 }
This page took 0.025252 seconds and 5 git commands to generate.