Search in sources :

Example 1 with ReusablesUIDynamicCompilerVisitor

use of org.whole.lang.reusables.visitors.ReusablesUIDynamicCompilerVisitor in project whole by wholeplatform.

the class ReusablesUIDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addEditorKit(ReusablesEditorKit.ID);
    platform.addOperationFactory(ReusablesLanguageKit.URI, DynamicCompilerOperation.ID, new IVisitorFactory() {

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

Aggregations

IOperation (org.whole.lang.operations.IOperation)1 ReusablesUIDynamicCompilerVisitor (org.whole.lang.reusables.visitors.ReusablesUIDynamicCompilerVisitor)1 IVisitor (org.whole.lang.visitors.IVisitor)1 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)1