/******************************************************************************* * Copyright (c) 2005, 2007 IBM Corporation 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 * *******************************************************************************/ package org.eclipse.vjet.eclipse.internal.ui.scriptcolor.provider; /** * modified copy of org.eclipse.dltk.javascript.ui.scriptcolor.provider.IScriptColorProvider */ import org.eclipse.jface.text.rules.IRule; import org.eclipse.jface.text.rules.IToken; /** * @author jcompagner * */ public interface IScriptColorProvider { /** * Get all the keywords this provider will generate tokens for. * * @return String[] of keywords */ public String[] getKeywords(); /** * Get the {@link IToken} for the specific keyword. * * @param keyword * @return The token for the given keyword. */ public IToken getToken(String keyword); /** * Get the rules that this provider wants to contribute to the code scanner. * * @return IRule array */ public IRule[] getRules(); }