UNPKG

@eclipse-glsp/client

Version:

A sprotty-based client for GLSP

46 lines 1.93 kB
/******************************************************************************** * 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 ********************************************************************************/ import { Action, GModelElement, KeyListener, KeyTool, MouseListener } from '@eclipse-glsp/sprotty'; import { Tool } from '../../../base/tool-manager/tool'; import { BaseEditTool } from '../base-tools'; /** * Deletes selected elements when hitting the `Del` key. */ export declare class DelKeyDeleteTool implements Tool { static ID: string; isEditTool: boolean; protected deleteKeyListener: DeleteKeyListener; protected readonly keytool: KeyTool; get id(): string; enable(): void; disable(): void; } export declare class DeleteKeyListener extends KeyListener { keyDown(element: GModelElement, event: KeyboardEvent): Action[]; } /** * Deletes selected elements when clicking on them. */ export declare class MouseDeleteTool extends BaseEditTool { static ID: string; protected deleteToolMouseListener: DeleteToolMouseListener; get id(): string; enable(): void; } export declare class DeleteToolMouseListener extends MouseListener { mouseUp(target: GModelElement, event: MouseEvent): Action[]; } //# sourceMappingURL=delete-tool.d.ts.map