os.linux: Remove latency table view and use the one from timing
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.ui / src / org / eclipse / tracecompass / internal / analysis / os / linux / ui / views / latency / SystemCallLatencyDensityView.java
index b69815f1c4d2bc816679527e14d100b1407b83f5..8299fc71ea048864df5a798c6a66f6aa0abc165e 100644 (file)
@@ -16,7 +16,8 @@ import org.eclipse.swt.widgets.Table;
 import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityView;
 import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityViewer;
 import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.AbstractSegmentStoreTableViewer;
-import org.eclipse.tracecompass.common.core.NonNullUtils;
+import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.SegmentStoreTableViewer;
+import org.eclipse.tracecompass.internal.analysis.os.linux.core.latency.SystemCallLatencyAnalysis;
 
 /**
  * System Call Density view
@@ -38,10 +39,10 @@ public class SystemCallLatencyDensityView extends AbstractSegmentStoreDensityVie
 
     @Override
     protected AbstractSegmentStoreTableViewer createSegmentStoreTableViewer(Composite parent) {
-        return new SystemCallLatencyTableViewer(new TableViewer(parent, SWT.FULL_SELECTION | SWT.VIRTUAL)) {
+        return new SegmentStoreTableViewer(new TableViewer(parent, SWT.FULL_SELECTION | SWT.VIRTUAL), SystemCallLatencyAnalysis.ID) {
             @Override
-            protected void createAnalysisColumns() {
-                super.createAnalysisColumns();
+            protected void createProviderColumns() {
+                super.createProviderColumns();
                 Table t = (Table) getControl();
                 t.setColumnOrder(new int[] { 2, 3, 0, 1 });
             }
@@ -50,7 +51,7 @@ public class SystemCallLatencyDensityView extends AbstractSegmentStoreDensityVie
 
     @Override
     protected AbstractSegmentStoreDensityViewer createSegmentStoreDensityViewer(Composite parent) {
-        return new SystemCallDensityViewer(NonNullUtils.checkNotNull(parent));
+        return new SystemCallDensityViewer(parent);
     }
 
 }
This page took 0.041988 seconds and 5 git commands to generate.