Bug 96300 - Use the line separator platform preference for new files
Summary: Use the line separator platform preference for new files
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-23 10:23 EDT by Jerome Lanneluc CLA
Modified: 2005-05-27 09:12 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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