Unit test for TmfViewFactory
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui.tests / widgetStubs / org / eclipse / tracecompass / tmf / ui / tests / stubs / views / TmfViewStub.java
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 (file)
index 0000000..bfed021
--- /dev/null
@@ -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 */
+    }
+}
This page took 0.024967 seconds and 5 git commands to generate.