Bug 81078 [preferences] Restore Defaults duplicates list entries
I200412142000 Restore Defaults on Java > Editor > Appearance duplicates the "Appearance color options" entries.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/LinkedModeConfigurationBlock.java
return (ListItem) ((IStructuredSelection) fAnnotationTypeViewer.getSelection()).getFirstElement();
	}
	private void updateDecorationViewer(ListItem item, boolean changed) {
		
		
		final boolean enabled= fShowInTextCheckBox.getSelection() && !(item.highlightKey == null && item.textStyleKey == null);
		fDecorationViewer.getControl().setEnabled(enabled);
		
		if (changed) {
			String[] selection= null;
			ArrayList list= new ArrayList();
			
			list.addAll(item.validStyles);
			
			if (getPreferenceStore().getBoolean(item.highlightKey))
				selection= HIGHLIGHT;
			
			
			if (selection == null) {
				String val= getPreferenceStore().getString(item.textStyleKey);
				for (Iterator iter= list.iterator(); iter.hasNext();) {
					String[] elem= (String[]) iter.next();
					if (elem[1].equals(val)) {
						selection= elem;
						break;
					}
				}
			}
			
			fDecorationViewer.setInput(list.toArray(new Object[list.size()]));