import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
-import java.util.Collection;
+import java.util.Collections;
import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
import org.eclipse.tracecompass.tmf.core.trace.TmfTraceManager;
-import com.google.common.collect.ImmutableList;
-
/**
* Abstract analysis module to generate a segment store. It is a base class that
* can be used as a shortcut by analysis who just need to build a single segment
* @since 2.0
*
*/
-public abstract class AbstractSegmentStoreAnalysisModule extends TmfAbstractAnalysisModule {
+public abstract class AbstractSegmentStoreAnalysisModule extends TmfAbstractAnalysisModule implements ISegmentStoreProvider {
private final ListenerList fListeners = new ListenerList(ListenerList.IDENTITY);
private @Nullable ITmfEventRequest fOngoingRequest = null;
- /**
- * Listener for the viewers
- *
- * @param listener
- * listener for each type of viewer
- */
+ @Override
public void addListener(IAnalysisProgressListener listener) {
fListeners.add(listener);
}
- /**
- * Removes a listener for the viewers
- *
- * @param listener
- * listener for each type of viewer to remove
- */
+ @Override
public void removeListener(IAnalysisProgressListener listener) {
fListeners.remove(listener);
}
return listeners;
}
- /**
- * Return the pre-defined set of segment aspects exposed by this analysis.
- *
- * It should not be null, but could be empty.
- *
- * @return The segment aspects for this analysis
- */
+ @Override
public Iterable<ISegmentAspect> getSegmentAspects() {
- Collection<ISegmentAspect> coll = ImmutableList.of();
- return checkNotNull(coll);
+ return Collections.emptyList();
}
/**
*/
protected abstract Object[] readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException;
- /**
- * Returns the segment store built by this analysis
- *
- * @return The segment store
- */
+ @Override
public @Nullable ISegmentStore<ISegment> getSegmentStore() {
return fSegmentStore;
}