Search in sources :

Example 1 with ATEStringTemplateSyntaxParser

use of org.antlr.works.stringtemplate.syntax.ATEStringTemplateSyntaxParser in project antlrworks by antlr.

the class STRulePanel method refreshRules.

public void refreshRules() {
    model.clear();
    List<ElementTemplateRule> rules = ((ATEStringTemplateSyntaxParser) window.getTextEditor().getParserEngine().getParser()).templateRules;
    for (ElementTemplateRule rule : rules) {
        model.addRule(rule);
    }
    model.fireSort();
    tableView.getTable().setModel(model);
    tableView.autoresizeColumns();
}
Also used : ElementTemplateRule(org.antlr.works.stringtemplate.element.ElementTemplateRule) ATEStringTemplateSyntaxParser(org.antlr.works.stringtemplate.syntax.ATEStringTemplateSyntaxParser)

Aggregations

ElementTemplateRule (org.antlr.works.stringtemplate.element.ElementTemplateRule)1 ATEStringTemplateSyntaxParser (org.antlr.works.stringtemplate.syntax.ATEStringTemplateSyntaxParser)1