blob: 2da7306ebed67ff74490366706cf38f98689c06a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 xored software, Inc.
*
* 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:
* xored software, Inc. - initial API and Implementation (Alex Panchenko)
*******************************************************************************/
package org.eclipse.dltk.ui.coloring;
import org.eclipse.dltk.ui.text.ITokenFactory;
import org.eclipse.jface.text.rules.IRule;
import org.eclipse.jface.text.rules.IToken;
public interface ITextRuleProvider {
/**
* Creates {@link IRule} for the specified document content type.
*
* @param contentType
* the document content type to create rules for
* @param tokenFactory
* token factory to return {@link IToken} by its internal
* identifier
*
* @return
*/
IRule[] getRules(String contentType, ITokenFactory tokenFactory);
}