mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fixup CDocumentProvider
This commit is contained in:
parent
defbca8c8f
commit
fc3bcd32fe
1 changed files with 1 additions and 26 deletions
|
@ -101,29 +101,4 @@ public class CDocumentProvider extends FileDocumentProvider {
|
|||
|
||||
return super.createAnnotationModel(element);
|
||||
}
|
||||
|
||||
protected ElementInfo createElementInfo(Object element) throws CoreException {
|
||||
if (element instanceof IFileEditorInput) {
|
||||
|
||||
IFileEditorInput input= (IFileEditorInput) element;
|
||||
|
||||
try {
|
||||
input.getFile().refreshLocal(IResource.DEPTH_INFINITE, null);
|
||||
} catch (CoreException x) {
|
||||
handleCoreException(x,"CFileDocumentProvider.createElementInfo"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
IDocument d= createDocument(element);
|
||||
IAnnotationModel m= new CMarkerAnnotationModel(((IFileEditorInput)element).getFile());
|
||||
FileSynchronizer f= new FileSynchronizer(input);
|
||||
f.install();
|
||||
|
||||
FileInfo info= new FileInfo(d, m, f);
|
||||
info.fModificationStamp= computeModificationStamp(input.getFile());
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
return super.createElementInfo(element);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue