Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Maetzel2003-09-30 17:30:22 +0000
committerKai Maetzel2003-09-30 17:30:22 +0000
commitd1327169cecd21faaf6f431a1814ef1ed14ab25d (patch)
treef7e2dae33f47c480314b252d5bd167bcaa19c49a /org.eclipse.core.filebuffers
parentf5f6e8e91e57453c2801657e328e2267de8dcb31 (diff)
downloadeclipse.platform.text-d1327169cecd21faaf6f431a1814ef1ed14ab25d.tar.gz
eclipse.platform.text-d1327169cecd21faaf6f431a1814ef1ed14ab25d.tar.xz
eclipse.platform.text-d1327169cecd21faaf6f431a1814ef1ed14ab25d.zip
bug fixing
Diffstat (limited to 'org.eclipse.core.filebuffers')
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaTextFileBuffer.java5
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java6
2 files changed, 3 insertions, 8 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaTextFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaTextFileBuffer.java
index 857db9c4a..83034b0b1 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaTextFileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaTextFileBuffer.java
@@ -25,7 +25,6 @@ import org.eclipse.core.resources.IResourceStatus;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.filebuffers.ITextFileBuffer;
@@ -67,10 +66,6 @@ public class JavaTextFileBuffer extends JavaFileBuffer implements ITextFileBuffe
*/
static final private int BUFFER_SIZE= 8 * READER_CHUNK_SIZE;
/**
- * Qualified name for the encoding key.
- */
- static final private QualifiedName ENCODING_KEY= new QualifiedName(FileBuffersPlugin.PLUGIN_ID, "encoding"); //$NON-NLS-1$
- /**
* Constant for representing the ok status. This is considered a value object.
*/
static final private IStatus STATUS_OK= new Status(IStatus.OK, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, "OK", null);
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java
index a902a81a3..528f0c4d4 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java
@@ -92,9 +92,9 @@ public class TextFileBufferManager implements ITextFileBufferManager {
private AbstractFileBuffer createFileBuffer(IPath location) {
if (!isTextFile(location))
return null;
-//
-// if (isWorkspaceResource(location))
-// return new ResourceTextFileBuffer(this);
+
+ if (isWorkspaceResource(location))
+ return new ResourceTextFileBuffer(this);
return new JavaTextFileBuffer(this);
}

Back to the top