tmf: lttngControl: new enum TraceChannelOutputType
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.ui / src / org / eclipse / linuxtools / internal / lttng2 / control / ui / views / model / impl / TraceChannelComponent.java
index 8ad26cf5cd0d117dc84643f3571af3063dcac9fa..7316a456de1a97f8810ccc3c1b0b4929444cdd58 100644 (file)
@@ -20,6 +20,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.linuxtools.internal.lttng2.control.core.model.IChannelInfo;
 import org.eclipse.linuxtools.internal.lttng2.control.core.model.IEventInfo;
 import org.eclipse.linuxtools.internal.lttng2.control.core.model.LogLevelType;
+import org.eclipse.linuxtools.internal.lttng2.control.core.model.TraceChannelOutputType;
 import org.eclipse.linuxtools.internal.lttng2.control.core.model.TraceEnablement;
 import org.eclipse.linuxtools.internal.lttng2.control.core.model.TraceLogLevel;
 import org.eclipse.linuxtools.internal.lttng2.control.core.model.impl.ChannelInfo;
@@ -190,9 +191,16 @@ public class TraceChannelComponent extends TraceControlComponent {
     /**
      * @return the output type.
      */
-    public String getOutputType() {
+    public TraceChannelOutputType getOutputType() {
         return fChannelInfo.getOutputType();
     }
+    /**
+     * Sets the output type to the given value.
+     * @param type - type to set.
+     */
+    public void setOutputType(TraceChannelOutputType type) {
+        fChannelInfo.setOutputType(type);
+    }
     /**
      * Sets the output type to the given value.
      * @param type - type to set.
@@ -200,6 +208,7 @@ public class TraceChannelComponent extends TraceControlComponent {
     public void setOutputType(String type) {
         fChannelInfo.setOutputType(type);
     }
+
     /**
      * @return the channel state (enabled or disabled).
      */
This page took 0.025971 seconds and 5 git commands to generate.