Search in sources :

Example 1 with WorkflowsIDEContentAssistVisitor

use of org.whole.lang.workflows.visitors.WorkflowsIDEContentAssistVisitor in project whole by wholeplatform.

the class IDEOperationsDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addOperationFactory(WorkflowsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            if (stage == 0)
                return new WorkflowsIDEInterpreterVisitor();
            else
                return null;
        }
    });
    platform.addOperationFactory(WorkflowsLanguageKit.URI, ContentAssistOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            return new WorkflowsIDEContentAssistVisitor();
        }
    });
    new JavaReflectLibraryDeployer().deploy(platform);
}
Also used : IOperation(org.whole.lang.operations.IOperation) WorkflowsIDEInterpreterVisitor(org.whole.lang.workflows.visitors.WorkflowsIDEInterpreterVisitor) IVisitor(org.whole.lang.visitors.IVisitor) WorkflowsIDEContentAssistVisitor(org.whole.lang.workflows.visitors.WorkflowsIDEContentAssistVisitor) JavaReflectLibraryDeployer(org.whole.lang.java.JavaReflectLibraryDeployer) IVisitorFactory(org.whole.lang.visitors.IVisitorFactory)

Aggregations

JavaReflectLibraryDeployer (org.whole.lang.java.JavaReflectLibraryDeployer)1 IOperation (org.whole.lang.operations.IOperation)1 IVisitor (org.whole.lang.visitors.IVisitor)1 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)1 WorkflowsIDEContentAssistVisitor (org.whole.lang.workflows.visitors.WorkflowsIDEContentAssistVisitor)1 WorkflowsIDEInterpreterVisitor (org.whole.lang.workflows.visitors.WorkflowsIDEInterpreterVisitor)1