mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 02:58:31 -05:00
24 lines
913 B
TypeScript
24 lines
913 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
|
|
import { nb } from 'azdata';
|
|
|
|
import { CellModel } from './cell';
|
|
import { IClientSession, IClientSessionOptions, ICellModelOptions, ICellModel, IModelFactory } from './modelInterfaces';
|
|
import { ClientSession } from './clientSession';
|
|
|
|
export class ModelFactory implements IModelFactory {
|
|
|
|
public createCell(cell: nb.ICellContents, options: ICellModelOptions): ICellModel {
|
|
return new CellModel(this, cell, options);
|
|
}
|
|
|
|
public createClientSession(options: IClientSessionOptions): IClientSession {
|
|
return new ClientSession(options);
|
|
}
|
|
}
|