theia-sprotty
Version:
Glue code for sprotty diagrams in a Theia IDE
27 lines • 1.69 kB
JavaScript
;
/*
* Copyright (C) 2017 TypeFox and others.
*
* Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
Object.defineProperty(exports, "__esModule", { value: true });
var inversify_1 = require("inversify");
var diagram_widget_registry_1 = require("./diagram-widget-registry");
var diagram_configuration_1 = require("./diagram-configuration");
var theia_file_saver_1 = require("../sprotty/theia-file-saver");
var diagram_commands_1 = require("./diagram-commands");
var common_1 = require("@theia/core/lib/common");
var diagram_keybinding_1 = require("./diagram-keybinding");
var browser_1 = require("@theia/core/lib/browser");
exports.default = new inversify_1.ContainerModule(function (bind) {
bind(diagram_widget_registry_1.DiagramWidgetRegistry).toSelf().inSingletonScope();
bind(diagram_configuration_1.DiagramConfigurationRegistry).toSelf().inSingletonScope();
bind(theia_file_saver_1.TheiaFileSaver).toSelf().inSingletonScope();
bind(common_1.CommandContribution).to(diagram_commands_1.DiagramCommandContribution).inSingletonScope();
bind(common_1.MenuContribution).to(diagram_commands_1.DiagramMenuContribution).inSingletonScope();
bind(diagram_keybinding_1.DiagramKeybindingContext).toSelf().inSingletonScope();
bind(browser_1.KeybindingContext).to(diagram_keybinding_1.DiagramKeybindingContext).inSingletonScope();
bind(browser_1.KeybindingContribution).to(diagram_keybinding_1.DiagramKeybindingContribution).inSingletonScope();
});
//# sourceMappingURL=diagram-module.js.map