X-Git-Url: http://secure.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/BufferCache.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/BufferCache.java
index 62ad8f0..a923a82 100644
--- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/BufferCache.java
+++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/BufferCache.java
@@ -11,40 +11,44 @@
package net.sourceforge.phpdt.internal.core;
import net.sourceforge.phpdt.core.IBuffer;
-import net.sourceforge.phpdt.core.util.LRUCache;
+import net.sourceforge.phpdt.internal.core.util.LRUCache;
/**
* An LRU cache of IBuffers
.
*/
public class BufferCache extends OverflowingLRUCache {
-/**
- * Constructs a new buffer cache of the given size.
- */
-public BufferCache(int size) {
- super(size);
-}
-/**
- * Constructs a new buffer cache of the given size.
- */
-public BufferCache(int size, int overflow) {
- super(size, overflow);
-}
-/**
- * Returns true if the buffer is successfully closed and
- * removed from the cache, otherwise false.
- *
- *
NOTE: this triggers an external removal of this buffer - * by closing the buffer. - */ -protected boolean close(LRUCacheEntry entry) { - IBuffer buffer= (IBuffer) entry._fValue; - if (buffer.hasUnsavedChanges()) { - return false; - } else { - buffer.close(); - return true; + /** + * Constructs a new buffer cache of the given size. + */ + public BufferCache(int size) { + super(size); } -} + + /** + * Constructs a new buffer cache of the given size. + */ + public BufferCache(int size, int overflow) { + super(size, overflow); + } + + /** + * Returns true if the buffer is successfully closed and removed from the + * cache, otherwise false. + * + *
+ * NOTE: this triggers an external removal of this buffer by closing the + * buffer. + */ + protected boolean close(LRUCacheEntry entry) { + IBuffer buffer = (IBuffer) entry._fValue; + if (buffer.hasUnsavedChanges()) { + return false; + } else { + buffer.close(); + return true; + } + } + /** * Returns a new instance of the reciever. */