Bug 96300

Summary: Use the line separator platform preference for new files
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jerome Lanneluc CLA 2005-05-23 10:23:14 EDT
N20050523

As described in bug 3970, we should use the platform preference to get the line
separator for new files.
Comment 1 Jerome Lanneluc CLA 2005-05-23 11:12:01 EDT
Added org.eclipse.jdt.internal.core.Util#getLineSeparator(...) that gets the
line separator from the given source if any, then defaults to the project
preference, then to the workspace preference, then to the system line separator.
Changed JDT Core code to use this new helper.
Comment 2 David Audel CLA 2005-05-27 09:12:19 EDT
Verified in i20050527-0010