Bug 3970 [preferences] UI needed to define the default line delimiters for new files (1GFIOAX)
When creating a new file we currently use the line delimiter returned form System.getProperties("line.delimiter"). But this is not whay a user always wants. Consider the following sceanrio: - Unix and Windows work station used to develop a Unix product / program. - the Windows work stations are used as X terminals and to run Eclipse (since PC are cheaper than Unix boxes). - even if the new file is created on Windows it should have Unix line delimiters since the end product is a Unix product. There should be a UI (Preference) to define the line delimiter for new files. Possible values are: - Dos / Windows - Mac - Unix - default platform line delimiter. The UI should be provided by the Workbench since all plugins should use the same line delimiter for new files. NOTES:
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
if (this.executableBox != null)
			this.executableBox.setSelection(false);
		
		if (this.derivedBox != null)
			this.derivedBox.setSelection(false);
		encodingEditor.loadDefault();
	}
	/**
	 * Apply the read only state and the encoding to the resource.
	 */
	public boolean performOk() {
		IResource resource = (IResource) getElement();
		encodingEditor.store();
		try {
			
			if (editableBox != null && executableBox != null
					&& archiveBox != null) {
				boolean localReadOnlyValue = editableBox.getSelection();
				boolean localExecutableValue = executableBox.getSelection();
				boolean localArchiveValue = archiveBox.getSelection();
				ResourceAttributes attrs = resource.getResourceAttributes();
				if (attrs != null) {
					attrs.setExecutable(localExecutableValue);
					attrs.setReadOnly(localReadOnlyValue);
					attrs.setArchive(localArchiveValue);
					if (previousReadOnlyValue != localReadOnlyValue
							|| previousExecutableValue != localExecutableValue
							|| previousArchiveValue != localArchiveValue) {
						resource.setResourceAttributes(attrs);
						attrs = resource.getResourceAttributes();