UNPKG

@kieler/klighd-core

Version:

Core KLighD diagram visualization with Sprotty

42 lines 2.25 kB
"use strict"; /* * KIELER - Kiel Integrated Environment for Layout Eclipse RichClient * * http://rtsys.informatik.uni-kiel.de/kieler * * Copyright 2021 by * + Kiel University * + Department of Computer Science * + Real-Time and Embedded Systems Group * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); const inversify_1 = require("inversify"); const sprotty_1 = require("sprotty"); const di_symbols_1 = require("../di.symbols"); const bookmark_1 = require("./bookmark"); const bookmark_panel_1 = require("./bookmark-panel"); const bookmark_registry_1 = require("./bookmark-registry"); /** * Module for creating and going to bookmarks */ const bookmarkModule = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => { const context = { bind, unbind, isBound, rebind }; bind(bookmark_panel_1.BookmarkPanel).toSelf().inSingletonScope(); bind(di_symbols_1.DISymbol.SidebarPanel).toService(bookmark_panel_1.BookmarkPanel); bind(di_symbols_1.DISymbol.BookmarkRegistry).to(bookmark_registry_1.BookmarkRegistry).inSingletonScope(); (0, sprotty_1.configureCommand)(context, bookmark_1.CreateBookmarkCommand); (0, sprotty_1.configureActionHandler)(context, bookmark_1.CreateBookmarkAction.KIND, di_symbols_1.DISymbol.BookmarkRegistry); (0, sprotty_1.configureActionHandler)(context, bookmark_1.AddBookmarkAction.KIND, di_symbols_1.DISymbol.BookmarkRegistry); (0, sprotty_1.configureActionHandler)(context, bookmark_1.DeleteBookmarkAction.KIND, di_symbols_1.DISymbol.BookmarkRegistry); (0, sprotty_1.configureActionHandler)(context, bookmark_1.RenameBookmarkAction.KIND, di_symbols_1.DISymbol.BookmarkRegistry); (0, sprotty_1.configureActionHandler)(context, bookmark_1.GoToBookmarkAction.KIND, di_symbols_1.DISymbol.BookmarkRegistry); (0, sprotty_1.configureActionHandler)(context, bookmark_1.SetInitialBookmarkAction.KIND, di_symbols_1.DISymbol.BookmarkRegistry); }); exports.default = bookmarkModule; //# sourceMappingURL=bookmark-module.js.map