blob: 5defed7e32e40d24dded6579e63ed3f9c1267598 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.tasks.ui.editors;
import org.eclipse.jface.preference.JFacePreferences;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.custom.StyleRange;
/**
* A manager that decorates hyperlinks with the hyperlink color.
*
* @author Steffen Pingel
*/
public class HighlightingHyperlinkTextPresentationManager extends AbstractHyperlinkTextPresentationManager {
@Override
protected void decorate(StyleRange styleRange) {
styleRange.foreground = JFaceResources.getColorRegistry().get(JFacePreferences.ACTIVE_HYPERLINK_COLOR);
}
}