package org.erlide.ui.console;

import org.eclipse.core.runtime.Assert;
import org.eclipse.swt.custom.StyleRange;
import org.eclipse.swt.graphics.Color;

/**
 * Defines a style range that identifies a given type of content in the console
 * (as defined in the constants)
 * 
 * @author Fabio
 */
public class ScriptStyleRange extends StyleRange {

	public static final int UNKNOWN = -1;
	public static final int STDIN = 0;
	public static final int PROMPT = 1;
	public static final int STDOUT = 2;
	public static final int STDERR = 3;

	public int scriptType;

	public ScriptStyleRange(int start, int len, Color fore, Color back,
			int scriptType) {
		super(start, len, fore, back);
		Assert.isTrue(len >= 0);
		this.scriptType = scriptType;
	}

}
