Bug 107599 [Preferences] Line delimiter field editor will not switch to defaults
20050818 When you select Restore Defaults on the Workspace preference page the line delimiter is not reset STEPS 1) Open the Workbench Preference Page 2) Set the line delimiter to OS/9 3) Hit OK 4) Reopen 5) Select Restore Defaults 6) Does not change
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LineDelimiterEditor.java
Set keys = knownValues.keySet();
		String current = getStoredValue();
		if (current != null) {
			for (Iterator iter = keys.iterator(); iter.hasNext();) {
				String element = (String) iter.next();
				if (knownValues.get(element).equals(current)) {
					selection = element;
					break;
				}
			}
		}
		String[] items = choiceCombo.getItems();
		for (int i = 0; i < items.length; i++) {
			String item = items[i];
			if (item.equals(selection)) {
				choiceCombo.select(i);
				break;
			}
		}
	}
	/**
	 * Store the currently selected line delimiter value in the preference
	 * store.
	 */
	public void store() {
		String val;
		if (defaultButton.getSelection() || choiceCombo.getText().equals("")) { 
			val = null;
		} else {
			Map lineSeparators = Platform.knownPlatformLineSeparators();