Skip to main content
summaryrefslogtreecommitdiffstats
blob: 51b408604080c38f1f7880380ef7622634492ca1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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);
}

Back to the top