blob: 7641f8ae4c0988fe56dd1f982232612f7a25f778 [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.vaaclipse.addons.keybinding;
import java.util.List;
import org.eclipse.e4.ui.model.application.commands.MKeyBinding;
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
/**
* The Interface IKeyBindingService.
*/
public interface IKeyBindingService {
/** The Constant DEFAULT_CONTEXT. */
public static final String DEFAULT_CONTEXT = "org.eclipse.osbp.vaaclipse.addons.contexts.dialogAndWindow";
/** The Constant LUNIFERA_KEY_BINDINGS. */
public static final String LUNIFERA_KEY_BINDINGS = "osbp.keyBindings";
/**
* Returns the key binding String like "CTRL+S" for the given mPart and the
* commandId.
*
* @param mPart
* the m part
* @param commandId
* the command id
* @return the key binding string
*/
String getKeyBindingString(MPart mPart, String commandId);
/**
* Returns all key bindings for the application model.
*
* @return the all key bindings
*/
List<MKeyBinding> getAllKeyBindings();
}