timing.core/ui/tests: add function density test
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.timing.ui / src / org / eclipse / tracecompass / analysis / timing / ui / views / segmentstore / density / AbstractSegmentStoreDensityView.java
index b92e254676407dba55917491c774a86304564eda..dfb4df0e85d93f96cfe62b8d188d67ea31b1ae77 100644 (file)
@@ -24,6 +24,8 @@ import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
 import org.eclipse.tracecompass.tmf.core.trace.TmfTraceManager;
 import org.eclipse.tracecompass.tmf.ui.views.TmfView;
 
+import com.google.common.annotations.VisibleForTesting;
+
 /**
  * Displays the segment store analysis data in a density chart and a table
  * corresponding to the selected latencies.
@@ -139,9 +141,25 @@ public abstract class AbstractSegmentStoreDensityView extends TmfView {
         super.dispose();
     }
 
-    // Package-visible on purpose for ZoomOutAction
-    @Nullable
-    AbstractSegmentStoreDensityViewer getDensityViewer() {
+    /**
+     * Get the density viewer
+     *
+     * @return the density viewer
+     * @since 1.2
+     */
+    @VisibleForTesting
+    public @Nullable AbstractSegmentStoreDensityViewer getDensityViewer() {
         return fDensityViewer;
     }
+
+    /**
+     * Get the table viewer
+     *
+     * @return the table viewer
+     * @since 1.2
+     */
+    @VisibleForTesting
+    public @Nullable AbstractSegmentStoreTableViewer getTableViewer() {
+        return fTableViewer;
+    }
 }
\ No newline at end of file
This page took 0.037146 seconds and 5 git commands to generate.