use of org.whole.lang.contexts.IEntityContext 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);
}
use of org.whole.lang.contexts.IEntityContext in project whole by wholeplatform.
the class TypesLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new TypesLanguageKit());
platform.addOperationFactory(TypesLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new TypesGenericBuilderAdapter((ITypesBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(TypesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new TypesSpecificBuilderAdapter(strategy, entityContext);
}
});
}
Aggregations