Search in sources :

Example 1 with FlowchartSpecificBuilderAdapter

use of org.whole.lang.flowchart.builders.FlowchartSpecificBuilderAdapter in project whole by wholeplatform.

the class FlowchartLanguageDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addLanguageKit(new FlowchartLanguageKit());
    platform.addOperationFactory(FlowchartLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new FlowchartGenericBuilderAdapter((IFlowchartBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(FlowchartLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new FlowchartSpecificBuilderAdapter(strategy, entityContext);
        }
    });
    platform.addEditorKit(FlowchartFreeformEditorKit.ID);
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) FlowchartSpecificBuilderAdapter(org.whole.lang.flowchart.builders.FlowchartSpecificBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) FlowchartGenericBuilderAdapter(org.whole.lang.flowchart.builders.FlowchartGenericBuilderAdapter) IFlowchartBuilder(org.whole.lang.flowchart.builders.IFlowchartBuilder) IBuilderFactory(org.whole.lang.builders.IBuilderFactory)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 FlowchartGenericBuilderAdapter (org.whole.lang.flowchart.builders.FlowchartGenericBuilderAdapter)1 FlowchartSpecificBuilderAdapter (org.whole.lang.flowchart.builders.FlowchartSpecificBuilderAdapter)1 IFlowchartBuilder (org.whole.lang.flowchart.builders.IFlowchartBuilder)1