Search in sources :

Example 1 with TestsUIInterpreterVisitor

use of org.whole.lang.tests.visitors.TestsUIInterpreterVisitor in project whole by wholeplatform.

the class TestsUIDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addEditorKit(TestsEditorKit.ID);
    platform.addOperationFactory(TestsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            if (stage == 0)
                return new TestsUIInterpreterVisitor();
            else
                return null;
        }
    });
}
Also used : IOperation(org.whole.lang.operations.IOperation) IVisitor(org.whole.lang.visitors.IVisitor) IVisitorFactory(org.whole.lang.visitors.IVisitorFactory) TestsUIInterpreterVisitor(org.whole.lang.tests.visitors.TestsUIInterpreterVisitor)

Aggregations

IOperation (org.whole.lang.operations.IOperation)1 TestsUIInterpreterVisitor (org.whole.lang.tests.visitors.TestsUIInterpreterVisitor)1 IVisitor (org.whole.lang.visitors.IVisitor)1 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)1