1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made 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
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.internal
.tmf
.ui
.markers
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.AbstractTmfTraceAdapterFactory
;
17 import org
.eclipse
.tracecompass
.tmf
.ui
.widgets
.timegraph
.model
.IMarkerEventSource
;
20 * Marker event source factory for lost events.
22 public class LostEventsMarkerEventSourceFactory
extends AbstractTmfTraceAdapterFactory
{
25 protected <T
> T
getTraceAdapter(ITmfTrace trace
, Class
<T
> adapterType
) {
26 if (IMarkerEventSource
.class.equals(adapterType
)) {
27 IMarkerEventSource adapter
= new LostEventsMarkerEventSource(trace
);
28 return adapterType
.cast(adapter
);
34 public Class
<?
>[] getAdapterList() {
36 IMarkerEventSource
.class