X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng2.control.core%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Finternal%2Flttng2%2Fcontrol%2Fcore%2Fmodel%2Fimpl%2FChannelInfo.java;h=6e2f6269921b8bcd2887787bd3dd6027b196b253;hb=0ad9fc89aaa085757a1cced36b6e7d2b23a3b1de;hp=951b91fa330cdd7b37d7ea41a0e3613d468ad2ba;hpb=1ed5ac2e0b2955cd74fe9ea3dcd2ed0c562dbc00;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng2.control.core/src/org/eclipse/linuxtools/internal/lttng2/control/core/model/impl/ChannelInfo.java b/org.eclipse.linuxtools.lttng2.control.core/src/org/eclipse/linuxtools/internal/lttng2/control/core/model/impl/ChannelInfo.java index 951b91fa33..6e2f626992 100644 --- a/org.eclipse.linuxtools.lttng2.control.core/src/org/eclipse/linuxtools/internal/lttng2/control/core/model/impl/ChannelInfo.java +++ b/org.eclipse.linuxtools.lttng2.control.core/src/org/eclipse/linuxtools/internal/lttng2/control/core/model/impl/ChannelInfo.java @@ -19,6 +19,7 @@ import java.util.List; 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.TraceChannelOutputType; import org.eclipse.linuxtools.internal.lttng2.control.core.model.TraceEnablement; /** @@ -55,7 +56,7 @@ public class ChannelInfo extends TraceInfo implements IChannelInfo { /** * The Output type of the channel. */ - private String fOutputType = ""; //$NON-NLS-1$ + private TraceChannelOutputType fOutputType = TraceChannelOutputType.UNKNOWN; /** * The channel enable state. */ @@ -106,7 +107,7 @@ public class ChannelInfo extends TraceInfo implements IChannelInfo { fMaxSizeTraceFiles = other.fMaxSizeTraceFiles; fMaxNumberTraceFiles = other.fMaxNumberTraceFiles; fBufferType = other.fBufferType; - fOutputType = (other.fOutputType == null ? null : String.valueOf(other.fOutputType)); + fOutputType = (other.fOutputType == null ? null : other.fOutputType); fState = other.fState; for (Iterator iterator = other.fEvents.iterator(); iterator.hasNext();) { IEventInfo event = iterator.next(); @@ -173,12 +174,17 @@ public class ChannelInfo extends TraceInfo implements IChannelInfo { } @Override - public String getOutputType() { + public TraceChannelOutputType getOutputType() { return fOutputType; } @Override public void setOutputType(String type) { + fOutputType = TraceChannelOutputType.valueOfString(type); + } + + @Override + public void setOutputType(TraceChannelOutputType type) { fOutputType = type; } @@ -297,7 +303,7 @@ public class ChannelInfo extends TraceInfo implements IChannelInfo { output.append(",ReadTimer="); output.append(fReadTimer); output.append(",output="); - output.append(fOutputType); + output.append(fOutputType.getInName()); if ((fBufferType != null) && !fBufferType.equals(BufferType.BUFFER_TYPE_UNKNOWN) && !fBufferType.equals(BufferType.BUFFER_SHARED)) { output.append(",BufferType="); output.append(fBufferType);