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