blob: 9ad4afda8b5d0f5ecf9358c66eb3e2347a6a2ecd (
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
|
package hu.bme.mit.inf.dslreasoner.faulttree.components.ui.syntaxcoloring;
import org.eclipse.xtext.ide.editor.syntaxcoloring.DefaultAntlrTokenToAttributeIdMapper;
import org.eclipse.xtext.ide.editor.syntaxcoloring.HighlightingStyles;
@SuppressWarnings("all")
public class CftLanguageTokenToAttributeIdMapper extends DefaultAntlrTokenToAttributeIdMapper {
@Override
protected String calculateId(final String tokenName, final int tokenType) {
String _switchResult = null;
if (tokenName != null) {
switch (tokenName) {
case "RULE_T_DOUBLE":
_switchResult = HighlightingStyles.NUMBER_ID;
break;
default:
_switchResult = super.calculateId(tokenName, tokenType);
break;
}
} else {
_switchResult = super.calculateId(tokenName, tokenType);
}
return _switchResult;
}
}
|