blob: c2b1d3034466c50a0679207f03d265175489f3ba [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014, 2015 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Matthew Khouzam - Initial API and implementation
*******************************************************************************/
package org.eclipse.tracecompass.tmf.pcap.ui.swtbot.tests;
import java.util.ArrayList;
import java.util.Arrays;
import org.eclipse.tracecompass.internal.tmf.pcap.ui.NetworkingPerspectiveFactory;
import org.eclipse.tracecompass.internal.tmf.pcap.ui.stream.StreamListView;
import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.AbstractPerspectiveChecker;
import org.eclipse.tracecompass.tmf.ui.views.colors.ColorsView;
import org.eclipse.tracecompass.tmf.ui.views.filter.FilterView;
import org.eclipse.tracecompass.tmf.ui.views.histogram.HistogramView;
import org.eclipse.tracecompass.tmf.ui.views.statistics.TmfStatisticsView;
import org.eclipse.ui.IPageLayout;
import org.junit.Before;
/**
* Tracing perspective view checker
*
* @author Matthew Khouzam
*/
public class NetworkPerspectiveChecker extends AbstractPerspectiveChecker {
/**
* Set up arrays for test
*/
@Before
public void init() {
fPerspectiveId = NetworkingPerspectiveFactory.ID;
fViewIds = new ArrayList<>();
fViewIds.addAll(Arrays.asList(new String[] {
// TMF views
HistogramView.ID,
TmfStatisticsView.ID,
FilterView.ID,
ColorsView.ID,
// PCAP
StreamListView.ID,
// Standard Eclipse views
IPageLayout.ID_PROJECT_EXPLORER,
IPageLayout.ID_PROP_SHEET,
IPageLayout.ID_BOOKMARKS
}));
}
}