diff options
Diffstat (limited to 'archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/services/ITokenColorer.java')
-rw-r--r-- | archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/services/ITokenColorer.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/services/ITokenColorer.java b/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/services/ITokenColorer.java new file mode 100644 index 000000000..51b408604 --- /dev/null +++ b/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/services/ITokenColorer.java @@ -0,0 +1,41 @@ +/******************************************************************************* +* Copyright (c) 2007 IBM Corporation. +* 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: +* Robert Fuhrer (rfuhrer@watson.ibm.com) - initial API and implementation + +*******************************************************************************/ + +package org.eclipse.imp.services; + +import org.eclipse.imp.language.ILanguageService; +import org.eclipse.imp.parser.IParseController; +import org.eclipse.jface.text.IRegion; +import org.eclipse.jface.text.TextAttribute; + +/* + * Licensed Materials - Property of IBM, + * (c) Copyright IBM Corp. 2005 All Rights Reserved + */ + +/** + */ +public interface ITokenColorer extends ILanguageService { + /** + * @param seed the nominal damage area + * @return a possibly expanded region of damage + */ + public IRegion calculateDamageExtent(IRegion seed, IParseController ctlr); + + /** + * Provide coloring and font to use for a given token in the model. + * @param model The model that contains the token + * @param token The token to be colored + * @return a TextAttribute + */ + public TextAttribute getColoring(IParseController controller, Object token); +} |