Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] fixup CDocumentProvider

No need to do this since super does the same.

Index: CDocumentProvider.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java,v
retrieving revision 1.4
diff -u -r1.4 CDocumentProvider.java
--- CDocumentProvider.java    24 Sep 2002 13:38:41 -0000    1.4
+++ CDocumentProvider.java    24 Sep 2002 19:57:00 -0000
@@ -101,29 +101,4 @@
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);
-    }
-}
\ No newline at end of file
+}




Back to the top