Move alltests plugin to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui.tests / widgetStubs / org / eclipse / linuxtools / tmf / ui / tests / experiment / type / TmfEventsEditorStub.java
1 /*******************************************************************************
2 * Copyright (c) 2014 École Polytechnique de Montréal
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * 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
8 *
9 * Contributors:
10 * Geneviève Bastien - Initial implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.tests.experiment.type;
14
15 import org.eclipse.linuxtools.tmf.ui.editors.TmfEventsEditor;
16 import org.eclipse.linuxtools.tmf.ui.viewers.events.TmfEventsTable;
17 import org.eclipse.swt.widgets.Composite;
18
19 /**
20 * Event editor stub for experiment type unit tests
21 *
22 * @author Geneviève Bastien
23 */
24 public class TmfEventsEditorStub extends TmfEventsEditor {
25
26 private Composite fParent;
27
28 @Override
29 public void createPartControl(final Composite parent) {
30 super.createPartControl(parent);
31 fParent = parent;
32 }
33
34 /**
35 * Get a new event table, because the one from the parent events editor is
36 * not available.
37 *
38 * This function is meant to be used for unit tests only
39 *
40 * @return A new event table
41 */
42 public TmfEventsTable getNewEventsTable() {
43 TmfEventsTable table = createEventsTable(fParent, getTrace().getCacheSize());
44 return table;
45 }
46
47 }
This page took 0.030342 seconds and 5 git commands to generate.