diff options
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/index/Index.java')
-rw-r--r-- | bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/index/Index.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/index/Index.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/index/Index.java index 868f4831..8807f57a 100644 --- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/index/Index.java +++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/index/Index.java @@ -210,4 +210,15 @@ public void stopQuery() { public String toString() { return "Index for " + this.containerPath; //$NON-NLS-1$ } +/** + * Reset memory and disk indexes. + * + * @throws IOException + */ +public void reset() throws IOException { + this.memoryIndex = new MemoryIndex(); + this.diskIndex = new DiskIndex(this.diskIndex.indexFile.getAbsolutePath()); + this.diskIndex.initialize(false/*do not reuse the index file*/); +} + } |