use of org.whole.lang.grammars.visitors.GrammarsUIInterpreterVisitor in project whole by wholeplatform.
the class GrammarsUIDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addEditorKit(GrammarsEditorKit.ID);
platform.addEditorKit(GrammarsParserEditorKit.ID);
platform.addEditorKit(GrammarsUnparserEditorKit.ID);
platform.addOperationFactory(GrammarsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new GrammarsUIInterpreterVisitor();
else
return null;
}
});
}
Aggregations