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
private void populateChoiceCombo(String[] items) {
		choiceCombo.setItems(items);
		if (getStoredValue() == null) {
			choiceCombo.setText(""); 
		} else {
			selectChoice();
		}
	}
	private void updateState(boolean useDefault) {
		if (useDefault) {
			defaultButton.setSelection(true);
			otherButton.setSelection(false);
			choiceCombo.setEnabled(false);
		} else {
			defaultButton.setSelection(false);
			otherButton.setSelection(true);
			choiceCombo.setEnabled(true);
			selectChoice();
		}
	}
	/**
	 * Select the item in the combo that matches the current preferences
	 * setting. NOTE: not handling the case where two platform line separators
	 * are defined with the same value. Assumption is that they are unique and
	 * the key will be modified to represent that. E.g. a key might be Mac OS
	 * 10/Linux if the same value is required for two platforms.
	 */
	private void selectChoice() {
		String selection = null;
		Map knownValues = Platform.knownPlatformLineSeparators();