UNPKG

@eclipse-glsp/client

Version:

A sprotty-based client for GLSP

35 lines 2.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.marqueeSelectionToolModule = void 0; /******************************************************************************** * Copyright (c) 2019-2024 EclipseSource and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available under the following Secondary * Licenses when the conditions for such availability set forth in the Eclipse * Public License v. 2.0 are satisfied: GNU General Public License, version 2 * with the GNU Classpath Exception which is available at * https://www.gnu.org/software/classpath/license.html. * * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 ********************************************************************************/ const sprotty_1 = require("@eclipse-glsp/sprotty"); const marquee_mouse_tool_1 = require("./marquee-mouse-tool"); const marquee_tool_1 = require("./marquee-tool"); const marquee_tool_feedback_1 = require("./marquee-tool-feedback"); const model_1 = require("./model"); const view_1 = require("./view"); const marquee_behavior_1 = require("./marquee-behavior"); exports.marqueeSelectionToolModule = new sprotty_1.FeatureModule((bind, unbind, isBound, rebind) => { const context = { bind, unbind, isBound, rebind }; context.bind(marquee_behavior_1.MarqueeUtil).toSelf().inSingletonScope(); (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.IDefaultTool, marquee_tool_1.MarqueeTool); (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.ITool, marquee_mouse_tool_1.MarqueeMouseTool); (0, sprotty_1.configureCommand)(context, marquee_tool_feedback_1.DrawMarqueeCommand); (0, sprotty_1.configureCommand)(context, marquee_tool_feedback_1.RemoveMarqueeCommand); (0, sprotty_1.configureModelElement)(context, marquee_tool_feedback_1.MARQUEE, model_1.MarqueeNode, view_1.MarqueeView); }, { featureId: Symbol('marqueeSelectionTool') }); //# sourceMappingURL=marquee-selection-module.js.map