Lines 13-18
Link Here
|
13 |
import org.eclipse.core.filebuffers.FileBuffers; |
13 |
import org.eclipse.core.filebuffers.FileBuffers; |
14 |
import org.eclipse.core.filebuffers.ITextFileBuffer; |
14 |
import org.eclipse.core.filebuffers.ITextFileBuffer; |
15 |
import org.eclipse.core.filebuffers.ITextFileBufferManager; |
15 |
import org.eclipse.core.filebuffers.ITextFileBufferManager; |
|
|
16 |
import org.eclipse.core.filebuffers.LocationKind; |
16 |
import org.eclipse.core.resources.IFile; |
17 |
import org.eclipse.core.resources.IFile; |
17 |
import org.eclipse.core.resources.IMarker; |
18 |
import org.eclipse.core.resources.IMarker; |
18 |
import org.eclipse.core.resources.IProject; |
19 |
import org.eclipse.core.resources.IProject; |
Lines 68-78
Link Here
|
68 |
return null; |
69 |
return null; |
69 |
} |
70 |
} |
70 |
try { |
71 |
try { |
71 |
manager.connect(file.getFullPath(), null); |
72 |
manager.connect(file.getFullPath(), LocationKind.NORMALIZE, null); |
72 |
ITextFileBuffer textBuf = manager.getTextFileBuffer(file |
73 |
ITextFileBuffer textBuf = manager.getTextFileBuffer(file |
73 |
.getFullPath()); |
74 |
.getFullPath(), LocationKind.NORMALIZE); |
74 |
IDocument document = textBuf.getDocument(); |
75 |
IDocument document = textBuf.getDocument(); |
75 |
manager.disconnect(file.getFullPath(), null); |
76 |
manager.disconnect(file.getFullPath(), LocationKind.NORMALIZE, null); |
76 |
return document; |
77 |
return document; |
77 |
} catch (CoreException e) { |
78 |
} catch (CoreException e) { |
78 |
PDECore.log(e); |
79 |
PDECore.log(e); |