Bug 201306

Summary: XMLErrorReporter makes deprecated calls
Product: [Eclipse Project] PDE Reporter: Chris Aniszczyk <caniszczyk>
Component: UIAssignee: Fabio Mancinelli <fm>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: bugday, contributed
Version: 3.4   
Target Milestone: 3.4 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
A patch to fix the bug
none
mylyn/context/zip none

Description Chris Aniszczyk CLA 2007-08-27 15:00:59 EDT
org.eclipse.pde.internal.core.builders.XMLErrorReporter.java

Severity and Description	Path	Resource	Location	Creation Time	Id
The method connect(IPath, IProgressMonitor) from the type IFileBufferManager is deprecated	org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders	XMLErrorReporter.java	line 94	1188224977953	132716
The method disconnect(IPath, IProgressMonitor) from the type IFileBufferManager is deprecated	org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders	XMLErrorReporter.java	line 96	1188224977953	132718
The method getTextFileBuffer(IPath) from the type ITextFileBufferManager is deprecated	org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders	XMLErrorReporter.java	line 95	1188224977953	132717
Comment 1 Fabio Mancinelli CLA 2007-08-27 17:14:38 EDT
Created attachment 77072 [details]
A patch to fix the bug

Just added LocationKind.NORMALIZE to method calls.

I used LocationKind.NORMALIZE after looking at
org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect/disconnect/getTextFileBuffer

TextFileBufferManager, in fact, is the base object returned by
FileBuffers.getTextFileBufferManager() and that is used in the lines mentioned
in the bug report.

Deprecated method calls are equivalent to calling the suggested method with the
LocationKind.NORMALIZE parameter

Fabio
Comment 2 Chris Aniszczyk CLA 2007-08-27 17:17:42 EDT
reassigning to you Fabio.

Will look at this patch tonight.
Comment 3 Chris Aniszczyk CLA 2007-08-27 19:14:40 EDT
committed to HEAD.

Thanks Fabio!
Comment 4 Chris Aniszczyk CLA 2007-08-27 19:14:42 EDT
Created attachment 77080 [details]
mylyn/context/zip
Comment 5 Chris Aniszczyk CLA 2007-08-27 19:16:51 EDT
updating target milestone