tmf: Axe the TmfEventTypeManager
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ctf.core / src / org / eclipse / tracecompass / tmf / ctf / core / CtfTmfEventType.java
index c4274188f5ce4a4f0dde8794c2bb77189f7e0007..0f8462c9c245b01a9c21a3d32cb1c3f26cccf9f7 100644 (file)
@@ -13,37 +13,25 @@ package org.eclipse.tracecompass.tmf.ctf.core;
 
 import org.eclipse.tracecompass.tmf.core.event.ITmfEventField;
 import org.eclipse.tracecompass.tmf.core.event.TmfEventType;
-import org.eclipse.tracecompass.tmf.core.event.TmfEventTypeManager;
-import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
 
 /**
  * The CTF extension of the TMF event type
  *
- * @version 1.0
  * @author Matthew khouzam
  */
 public class CtfTmfEventType extends TmfEventType {
 
-    /**
-     * CTFTmfEventType context for the event type manager
-     */
-    private static final String CONTEXT_ID = "Ctf Event"; //$NON-NLS-1$
-
-    private static final String UNKNOWN_TRACE = "unknown"; //$NON-NLS-1$
-
     /**
      * Constructor for CtfTmfEventType.
      *
      * @param eventName
      *            The event name
-     * @param trace
-     *            the parent trace
      * @param content
      *            The event field
      * @since 3.0
      */
-    public CtfTmfEventType(String eventName, ITmfTrace trace, ITmfEventField content) {
-        super(computeContextName(trace), eventName, content);
+    public CtfTmfEventType(String eventName, ITmfEventField content) {
+        super(eventName, content);
     }
 
     /**
@@ -55,30 +43,4 @@ public class CtfTmfEventType extends TmfEventType {
     public String toString() {
         return getName();
     }
-
-    /**
-     * gets the event type for an event name
-     *
-     * @param trace
-     *            the parent trace
-     * @param eventName
-     *            the event name
-     * @return the event type
-     * @since 3.0
-     */
-    public static CtfTmfEventType get(CtfTmfTrace trace, String eventName) {
-        return (CtfTmfEventType) TmfEventTypeManager.getInstance().getType(computeContextName(trace), eventName);
-    }
-
-    /**
-     * Get the context name of a ctf trace
-     *
-     * @param trace
-     *            the trace
-     * @return the context name
-     * @since 3.0
-     */
-    public static String computeContextName(ITmfTrace trace) {
-        return CONTEXT_ID + "/" + (trace == null ? UNKNOWN_TRACE : trace.getPath()); //$NON-NLS-1$
-    }
 }
This page took 0.025876 seconds and 5 git commands to generate.