custom.parsers: bug 494697 Define event names in custom parsers
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / parsers / custom / CustomXmlEventType.java
index 58293579e5c986aa73955bad6521b8c139b063c3..90156b9fc2cd4d4e8fb9c03950f7873807109749 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2014 Ericsson
+ * Copyright (c) 2010, 2016 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -12,6 +12,9 @@
 
 package org.eclipse.tracecompass.tmf.core.parsers.custom;
 
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.tracecompass.tmf.core.event.ITmfEventField;
+
 /**
  * Event type class for custom XML traces.
  *
@@ -24,9 +27,25 @@ public class CustomXmlEventType extends CustomEventType {
      *
      * @param definition
      *            Trace definition
+     * @deprecated Use {@link #CustomXmlEventType(String, ITmfEventField)}
+     *             instead.
      */
+    @Deprecated
     public CustomXmlEventType(CustomXmlTraceDefinition definition) {
         super(definition);
     }
 
+    /**
+     * Constructor
+     *
+     * @param eventName
+     *            the event name
+     * @param root
+     *            the root field
+     * @since 2.1
+     */
+    public CustomXmlEventType(@NonNull String eventName, ITmfEventField root) {
+        super(eventName, root);
+    }
+
 }
This page took 0.041069 seconds and 5 git commands to generate.