Bug 97852 [preferences] Pref Page Java/Editor/Syntax Coloring - Color label enablement
The "Color:" label should be disabled when the color button is disabled.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorColoringConfigurationBlock.java
{ createHighlightedRange(17,  2, 12, SemanticHighlightings.STATIC_METHOD_INVOCATION), createHighlightedRange(17,  2, 12, SemanticHighlightings.METHOD) },
			{ createHighlightedRange(18, 9,  3, SemanticHighlightings.METHOD) },
			{ createHighlightedRange(18, 13,  5, SemanticHighlightings.LOCAL_VARIABLE) },
			{ createHighlightedRange(18, 22,  9, SemanticHighlightings.AUTOBOXING) },
		};
	}
	/**
	 * Create a highlighted range on the previewers document with the given line, column, length and key.
	 * 
	 * @param line the line
	 * @param column the column
	 * @param length the length
	 * @param key the key
	 * @return the highlighted range
	 * @since 3.0
	 */
	private HighlightedRange createHighlightedRange(int line, int column, int length, String key) {
		try {
			IDocument document= fPreviewViewer.getDocument();
			int offset= document.getLineOffset(line) + column;
			return new HighlightedRange(offset, length, key);
		} catch (BadLocationException x) {
			JavaPlugin.log(x);
		}
		return null;
	}
	/**
	 * Returns the current highlighting color list item.
	 * 
	 * @return the current highlighting color list item