Finalize ITmfTrace API
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / internal / tmf / ui / parsers / custom / CustomTxtTrace.java
index 3790a24b7b9270cdb9a3a4b841b0ed6101c2f8d0..2d94dbb360a0290b80488937060a510df2d79936 100644 (file)
@@ -34,7 +34,7 @@ import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;
 public class CustomTxtTrace extends TmfTrace<CustomTxtEvent> {\r
 \r
     private static final TmfLocation<Long> NULL_LOCATION = new TmfLocation<Long>((Long) null);\r
-    private static final int DEFAULT_PAGE_SIZE = 100;\r
+    private static final int DEFAULT_CACHE_SIZE = 100;\r
 \r
     private CustomTxtTraceDefinition fDefinition;\r
     private CustomTxtEventType fEventType;\r
@@ -44,15 +44,15 @@ public class CustomTxtTrace extends TmfTrace<CustomTxtEvent> {
         fEventType = new CustomTxtEventType(fDefinition);\r
     }\r
 \r
-    public CustomTxtTrace(String name, CustomTxtTraceDefinition definition, String path, int cacheSize) throws FileNotFoundException {\r
-        super(name, CustomTxtEvent.class, path, cacheSize);\r
+    public CustomTxtTrace(String name, CustomTxtTraceDefinition definition, String path, int pageSize) throws FileNotFoundException {\r
+        super(name, CustomTxtEvent.class, path, (pageSize > 0) ? pageSize : DEFAULT_CACHE_SIZE);\r
         fDefinition = definition;\r
         fEventType = new CustomTxtEventType(fDefinition);\r
     }\r
 \r
     @Override\r
-    public void initTrace(String name, String path, Class<CustomTxtEvent> eventType, int pageSize) throws FileNotFoundException {\r
-        super.initTrace(name, path, eventType, (pageSize > 0) ? pageSize : DEFAULT_PAGE_SIZE);\r
+    public void initTrace(String name, String path, Class<CustomTxtEvent> eventType) throws FileNotFoundException {\r
+        super.initTrace(name, path, eventType);\r
     }\r
 \r
     @Override\r
This page took 0.024389 seconds and 5 git commands to generate.