X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tmf%2Forg.eclipse.tracecompass.tmf.ui.tests%2FwidgetStubs%2Forg%2Feclipse%2Ftracecompass%2Ftmf%2Fui%2Ftests%2Fstubs%2Fviews%2FTmfViewStub.java;fp=tmf%2Forg.eclipse.tracecompass.tmf.ui.tests%2FwidgetStubs%2Forg%2Feclipse%2Ftracecompass%2Ftmf%2Fui%2Ftests%2Fstubs%2Fviews%2FTmfViewStub.java;h=bfed02153cf9bca1ba809dc35d09db13f10504aa;hb=fe231cf6edbeea0fabce88e3bf249ce3e5186fe3;hp=0000000000000000000000000000000000000000;hpb=c389833c3f47a594d1e70b5d5244d25e3724f7f0;p=deliverable%2Ftracecompass.git diff --git a/tmf/org.eclipse.tracecompass.tmf.ui.tests/widgetStubs/org/eclipse/tracecompass/tmf/ui/tests/stubs/views/TmfViewStub.java b/tmf/org.eclipse.tracecompass.tmf.ui.tests/widgetStubs/org/eclipse/tracecompass/tmf/ui/tests/stubs/views/TmfViewStub.java new file mode 100644 index 0000000000..bfed02153c --- /dev/null +++ b/tmf/org.eclipse.tracecompass.tmf.ui.tests/widgetStubs/org/eclipse/tracecompass/tmf/ui/tests/stubs/views/TmfViewStub.java @@ -0,0 +1,41 @@ +/********************************************************************** + * Copyright (c) 2016 EfficiOS Inc. + * + * 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 + **********************************************************************/ + +package org.eclipse.tracecompass.tmf.ui.tests.stubs.views; + +import org.eclipse.tracecompass.tmf.ui.views.TmfView; + +/** + * Simple TmfView stub + * + * @author Jonathan Rajotte Julien + */ +public class TmfViewStub extends TmfView { + + /** The stub view id */ + public static String TMF_VIEW_STUB_ID = "org.eclipse.tracecompass.tmf.ui.tests.stubs.views.TmfViewStub"; + + /** Stub view constructor */ + public TmfViewStub() { + super(TMF_VIEW_STUB_ID); + } + + /** + * Override the normally protected getViewId to allow access for test + */ + @Override + public String getViewId() { + return super.getViewId(); + } + + @Override + public void setFocus() { + /** This is a stub no need to do thing on setFocus */ + } +}