Commit | Line | Data |
---|---|---|
664fa59c MK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 Ericsson | |
3 | * | |
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 | |
8 | * | |
9 | * Contributors: | |
10 | * Matthew Khouzam - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.lttng2.kernel.ui.swtbot.tests; | |
14 | ||
15 | import java.util.ArrayList; | |
16 | import java.util.Arrays; | |
17 | ||
8e8c0226 | 18 | import org.eclipse.linuxtools.internal.lttng2.control.ui.views.ControlView; |
664fa59c MK |
19 | import org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.PerspectiveFactory; |
20 | import org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.controlflow.ControlFlowView; | |
21 | import org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources.ResourcesView; | |
664fa59c MK |
22 | import org.eclipse.linuxtools.tmf.ui.swtbot.tests.AbstractPerspectiveChecker; |
23 | import org.eclipse.linuxtools.tmf.ui.views.histogram.HistogramView; | |
24 | import org.eclipse.linuxtools.tmf.ui.views.statistics.TmfStatisticsView; | |
25 | import org.eclipse.ui.IPageLayout; | |
26 | import org.junit.Before; | |
27 | ||
28 | /** | |
29 | * Tracing perspective view checker | |
30 | * | |
31 | * @author Matthew Khouzam | |
32 | */ | |
33 | public class KernelPerspectiveChecker extends AbstractPerspectiveChecker { | |
34 | ||
35 | /** | |
36 | * Set up arrays for test | |
37 | */ | |
38 | @Before | |
39 | public void init() { | |
40 | fPerspectiveId = PerspectiveFactory.ID; | |
41 | fViewIds = new ArrayList<>(); | |
42 | fViewIds.addAll(Arrays.asList(new String[] { | |
43 | // LTTng views | |
44 | HistogramView.ID, | |
45 | ControlView.ID, | |
46 | ControlFlowView.ID, | |
47 | ResourcesView.ID, | |
48 | TmfStatisticsView.ID, | |
49 | // Standard Eclipse views | |
50 | IPageLayout.ID_PROJECT_EXPLORER, | |
51 | IPageLayout.ID_PROP_SHEET, | |
52 | IPageLayout.ID_BOOKMARKS | |
53 | })); | |
54 | } | |
55 | } |