Add a "Clear Tracing Views" command
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / viewers / events / TmfEventsCache.java
index 68ccec8eea9dbe83184669000296fda956f6b280..9bd2a3bb8157de000b8ac186af2ededbcf2f8f1b 100644 (file)
@@ -13,6 +13,7 @@
 package org.eclipse.linuxtools.tmf.ui.viewers.events;\r
 \r
 import java.util.ArrayList;\r
+import java.util.Arrays;\r
 import java.util.List;\r
 \r
 import org.eclipse.core.runtime.IProgressMonitor;\r
@@ -99,6 +100,7 @@ public class TmfEventsCache {
      * Clear the current contents of this cache.\r
      */\r
     public synchronized void clear() {\r
+        Arrays.fill(fCache, null);\r
         fCacheStartIndex = 0;\r
         fCacheEndIndex = 0;\r
         fFilterIndex.clear();\r
This page took 0.023878 seconds and 5 git commands to generate.