Improve API.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / ctfadaptor / CtfTmfEventType.java
CommitLineData
b1baa808
MK
1/*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors: Matthew Khouzam - Initial API and implementation
10 *******************************************************************************/
11
ce2388e0
FC
12package org.eclipse.linuxtools.tmf.core.ctfadaptor;
13
14import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
15import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
aa572e22 16import org.eclipse.linuxtools.tmf.core.event.TmfEventTypeManager;
ce2388e0 17
b1baa808
MK
18/**
19 */
ce2388e0
FC
20public class CtfTmfEventType extends TmfEventType {
21
aa572e22 22 private static final String CONTEXT_ID = "Ctf Event"; //$NON-NLS-1$
b1baa808
MK
23 /**
24 * Constructor for CtfTmfEventType.
25 * @param contextId String
26 * @param eventName String
27 * @param content ITmfEventField
28 */
aa572e22 29 public CtfTmfEventType( String eventName,
ce2388e0 30 ITmfEventField content) {
aa572e22 31 super(CONTEXT_ID, eventName, content);
ce2388e0
FC
32 }
33
b1baa808
MK
34 /**
35 * Method toString.
36 * @return String
37 */
ce2388e0
FC
38 @Override
39 public String toString()
40 {
41 return this.getName();
42 }
aa572e22
MK
43
44 public static CtfTmfEventType get(String eventName){
45 return (CtfTmfEventType) TmfEventTypeManager.getInstance().getType(CONTEXT_ID, eventName);
46 }
ce2388e0 47}
This page took 0.026446 seconds and 5 git commands to generate.