/******************************************************************************* * Copyright (c) 2015 École Polytechnique de Montréal * * 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.analysis.graph.core.tests.stubs.module; import org.eclipse.tracecompass.analysis.graph.core.building.ITmfGraphProvider; import org.eclipse.tracecompass.analysis.graph.core.building.TmfGraphBuilderModule; import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; /** * Graph builder module stub * * @author Geneviève Bastien * @author Francis Giraldeau */ public class GraphBuilderModuleStub extends TmfGraphBuilderModule { /** The analysis id */ public static final String ANALYSIS_ID = "org.eclipse.linuxtools.tmf.analysis.graph.tests.stub"; @Override protected ITmfGraphProvider getGraphProvider() { ITmfTrace trace = getTrace(); if (trace == null) { throw new NullPointerException(); } return new GraphProviderStub(trace); } }