Bug 96788 Syntax coloring preferences are no longer sorter
N20050526-0010 Sorting when lost when switching from 3.0 table to 3.1 tree layout. Approving for RC1.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorColoringConfigurationBlock.java
SemanticHighlighting[] semanticHighlightings= SemanticHighlightings.getSemanticHighlightings();
		for (int i= 0, n= semanticHighlightings.length; i < n; i++)
			fListModel.add(
					new SemanticHighlightingColorListItem(
							semanticHighlightings[i].getDisplayName(), 
							SemanticHighlightings.getColorPreferenceKey(semanticHighlightings[i]),
							SemanticHighlightings.getBoldPreferenceKey(semanticHighlightings[i]),
							SemanticHighlightings.getItalicPreferenceKey(semanticHighlightings[i]),
							SemanticHighlightings.getStrikethroughPreferenceKey(semanticHighlightings[i]),
							SemanticHighlightings.getUnderlinePreferenceKey(semanticHighlightings[i]),
							SemanticHighlightings.getEnabledPreferenceKey(semanticHighlightings[i])
					));
		
		store.addKeys(createOverlayStoreKeys());
	}
	private OverlayPreferenceStore.OverlayKey[] createOverlayStoreKeys() {
		
		ArrayList overlayKeys= new ArrayList();
		
		for (int i= 0, n= fListModel.size(); i < n; i++) {
			HighlightingColorListItem item= (HighlightingColorListItem) fListModel.get(i);
			overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, item.getColorKey()));
			overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, item.getBoldKey()));
			overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, item.getItalicKey()));
			overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, item.getStrikethroughKey()));
			overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, item.getUnderlineKey()));
			
			if (item instanceof SemanticHighlightingColorListItem)
				overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ((SemanticHighlightingColorListItem) item).getEnableKey()));
		}