org.eclipse.tracecompass.tmf.core,
org.eclipse.tracecompass.segmentstore.core
Export-Package: org.eclipse.tracecompass.internal.tmf.analysis.xml.core;x-friends:="org.eclipse.tracecompass.tmf.analysis.xml.core.tests",
+ org.eclipse.tracecompass.internal.tmf.analysis.xml.core.pattern.stateprovider;x-internal:=true,
org.eclipse.tracecompass.tmf.analysis.xml.core.model,
org.eclipse.tracecompass.tmf.analysis.xml.core.model.readonly,
org.eclipse.tracecompass.tmf.analysis.xml.core.model.readwrite,
--- /dev/null
+/*******************************************************************************
+ * Copyright (c) 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 accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+package org.eclipse.tracecompass.internal.tmf.analysis.xml.core.pattern.stateprovider;
+
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.tracecompass.segmentstore.core.ISegment;
+
+/**
+ * Listener for segment creation.
+ * <p>
+ * Segment store analyses could build their store based on segments created by
+ * another analysis. In this case, the segment store analysis should implement
+ * this listener in order to receive the segments as they are created.
+ *
+ * @author Jean-Christian Kouame
+ *
+ */
+public interface ISegmentListener {
+
+ /**
+ * Called each time a segment will be created
+ *
+ * @param segment
+ * The new segment
+ */
+ void onNewSegment(@NonNull ISegment segment);
+}