Commit | Line | Data |
---|---|---|
d7fcacc9 FC |
1 | package org.eclipse.linuxtools.tmf.ui.parsers.custom;\r |
2 | \r | |
6c13869b | 3 | import org.eclipse.linuxtools.tmf.core.event.TmfEventType;\r |
d7fcacc9 FC |
4 | \r |
5 | public 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 |