Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / parsers / custom / CustomEventType.java
CommitLineData
d7fcacc9
FC
1package org.eclipse.linuxtools.tmf.ui.parsers.custom;\r
2\r
6c13869b 3import org.eclipse.linuxtools.tmf.core.event.TmfEventType;\r
d7fcacc9
FC
4\r
5public abstract class CustomEventType extends TmfEventType {\r
6 \r
7 public CustomEventType(CustomTraceDefinition definition) {\r
8 super(definition.definitionName, getLabels(definition));\r
9 }\r
10\r
11 private static String[] getLabels(CustomTraceDefinition definition) {\r
12 String[] labels = new String[definition.outputs.size()];\r
13 for (int i = 0; i < labels.length; i++) {\r
14 labels[i] = definition.outputs.get(i).name;\r
15 }\r
16 return labels;\r
17 }\r
18\r
19}\r
This page took 0.028915 seconds and 5 git commands to generate.