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
1 package org.eclipse.linuxtools.tmf.ui.parsers.custom;
2
3 import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
4
5 public abstract class CustomEventType extends TmfEventType {
6
7 public CustomEventType(CustomTraceDefinition definition) {
8 super(definition.definitionName, getLabels(definition));
9 }
10
11 private static String[] getLabels(CustomTraceDefinition definition) {
12 String[] labels = new String[definition.outputs.size()];
13 for (int i = 0; i < labels.length; i++) {
14 labels[i] = definition.outputs.get(i).name;
15 }
16 return labels;
17 }
18
19 }
This page took 0.030709 seconds and 5 git commands to generate.