Commit | Line | Data |
---|---|---|
fe231cf6 JR |
1 | /********************************************************************** |
2 | * Copyright (c) 2016 EfficiOS Inc. | |
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 | ||
10 | package org.eclipse.tracecompass.tmf.ui.tests.stubs.views; | |
11 | ||
12 | import org.eclipse.tracecompass.tmf.ui.views.TmfView; | |
13 | ||
14 | /** | |
15 | * Simple TmfView stub | |
16 | * | |
17 | * @author Jonathan Rajotte Julien | |
18 | */ | |
19 | public class TmfViewStub extends TmfView { | |
20 | ||
21 | /** The stub view id */ | |
22 | public static String TMF_VIEW_STUB_ID = "org.eclipse.tracecompass.tmf.ui.tests.stubs.views.TmfViewStub"; | |
23 | ||
24 | /** Stub view constructor */ | |
25 | public TmfViewStub() { | |
26 | super(TMF_VIEW_STUB_ID); | |
27 | } | |
28 | ||
29 | /** | |
30 | * Override the normally protected getViewId to allow access for test | |
31 | */ | |
32 | @Override | |
33 | public String getViewId() { | |
34 | return super.getViewId(); | |
35 | } | |
36 | ||
37 | @Override | |
38 | public void setFocus() { | |
39 | /** This is a stub no need to do thing on setFocus */ | |
40 | } | |
41 | } |