Bug 249511

Summary: [ltk] TextChange.perform(...) should not use unrestricted rewrite session for small changes
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 Keywords: performance
Version: 3.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: fix candidate
Bug Depends on:    
Bug Blocks: 190810    

Description Dani Megert CLA 2008-10-02 11:34:04 EDT
3.4, 3.5 M2.

org.eclipse.ltk.core.refactoring.TextChange.perform(IProgressMonitor) always uses org.eclipse.jface.text.DocumentRewriteSessionType.UNRESTRICTED even if the changes are small.

We should measure the impact of the changes (text edits) and use UNRESTRICTED_SMALL for small changes.