2010-10-26 Francois Chouinard <fchouinard@gmail.com> Contribution for Bug309042
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / common / AbsTRangeUpdate.java
index f1757bedfd199db6ba33f9148f8f758368a6c5ec..57cd0e9248a636383bec1ec41a28639b1cb9cb8b 100644 (file)
  *******************************************************************************/
 package org.eclipse.linuxtools.lttng.ui.views.common;
 
-import org.eclipse.linuxtools.lttng.state.evProcessor.IEventProcessing;
+import org.eclipse.linuxtools.lttng.state.evProcessor.ILttngEventProcessor;
 import org.eclipse.linuxtools.lttng.state.evProcessor.state.AbsStateProcessing;
 import org.eclipse.linuxtools.lttng.state.model.LttngTraceState;
 import org.eclipse.linuxtools.tmf.event.TmfTimeRange;
 
 public abstract class AbsTRangeUpdate extends AbsStateProcessing implements
-               IEventProcessing {
+               ILttngEventProcessor {
 
     private static final long MINORBITS = 20;
     
@@ -45,8 +45,8 @@ public abstract class AbsTRangeUpdate extends AbsStateProcessing implements
         */
     protected double getPixelsPerNs(LttngTraceState traceSt, ParamsUpdater params) {
         double pixPerNs = params.getPixelsPerNs();
-        if (pixPerNs == 0) {
-            TmfTimeRange tsetRange = traceSt.getInputDataRef().getExperimentTimeWindow();
+        if (pixPerNs == 0.0) {
+            TmfTimeRange tsetRange = traceSt.getContext().getExperimentTimeWindow();
             
             long startTime = tsetRange.getStartTime().getValue();
             long endTime = tsetRange.getEndTime().getValue();
This page took 0.02619 seconds and 5 git commands to generate.