blob: c3cd35d301908c5b19c52808c11f2c57ad30d51b [file] [log] [blame]
/**
* Copyright (c) 2017 Angelo ZERR.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Angelo Zerr <angelo.zerr@gmail.com> - [CodeMining] Provide inline annotations support - Bug 527675
*/
package org.eclipse.jface.text.examples.sources.inlined;
import org.eclipse.jface.text.Position;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.inlined.LineHeaderAnnotation;
/**
* Color status annotation shows the result of rgb parse before each line which
* defines 'color:'.
*/
public class ColorStatusAnnotation extends LineHeaderAnnotation {
public ColorStatusAnnotation(Position position, ISourceViewer viewer) {
super(position, viewer);
}
public void setStatus(String status) {
super.setText(status);
}
}