本文整理汇总了Java中com.intellij.openapi.keymap.KeymapUtil.matchActionMouseShortcutsModifiers方法的典型用法代码示例。如果您正苦于以下问题:Java KeymapUtil.matchActionMouseShortcutsModifiers方法的具体用法?Java KeymapUtil.matchActionMouseShortcutsModifiers怎么用?Java KeymapUtil.matchActionMouseShortcutsModifiers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.keymap.KeymapUtil
的用法示例。
在下文中一共展示了KeymapUtil.matchActionMouseShortcutsModifiers方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getBrowseMode
import com.intellij.openapi.keymap.KeymapUtil; //导入方法依赖的package包/类
@NotNull
private static BrowseMode getBrowseMode(@JdkConstants.InputEventMask int modifiers) {
if (modifiers != 0) {
final Keymap activeKeymap = KeymapManager.getInstance().getActiveKeymap();
if (KeymapUtil.matchActionMouseShortcutsModifiers(activeKeymap, modifiers, IdeActions.ACTION_GOTO_DECLARATION)) return BrowseMode.Declaration;
if (KeymapUtil.matchActionMouseShortcutsModifiers(activeKeymap, modifiers, IdeActions.ACTION_GOTO_TYPE_DECLARATION)) return BrowseMode.TypeDeclaration;
if (KeymapUtil.matchActionMouseShortcutsModifiers(activeKeymap, modifiers, IdeActions.ACTION_GOTO_IMPLEMENTATION)) return BrowseMode.Implementation;
if (modifiers == InputEvent.CTRL_MASK || modifiers == InputEvent.META_MASK) return BrowseMode.Declaration;
}
return BrowseMode.None;
}
示例2: getBrowseMode
import com.intellij.openapi.keymap.KeymapUtil; //导入方法依赖的package包/类
@Nonnull
private static BrowseMode getBrowseMode(@JdkConstants.InputEventMask int modifiers) {
if (modifiers != 0) {
final Keymap activeKeymap = KeymapManager.getInstance().getActiveKeymap();
if (KeymapUtil.matchActionMouseShortcutsModifiers(activeKeymap, modifiers, IdeActions.ACTION_GOTO_DECLARATION)) return BrowseMode.Declaration;
if (KeymapUtil.matchActionMouseShortcutsModifiers(activeKeymap, modifiers, IdeActions.ACTION_GOTO_TYPE_DECLARATION)) return BrowseMode.TypeDeclaration;
if (KeymapUtil.matchActionMouseShortcutsModifiers(activeKeymap, modifiers, IdeActions.ACTION_GOTO_IMPLEMENTATION)) return BrowseMode.Implementation;
if (modifiers == InputEvent.CTRL_MASK || modifiers == InputEvent.META_MASK) return BrowseMode.Declaration;
}
return BrowseMode.None;
}
示例3: isAltMask
import com.intellij.openapi.keymap.KeymapUtil; //导入方法依赖的package包/类
private static boolean isAltMask(@JdkConstants.InputEventMask int modifiers) {
return KeymapUtil.matchActionMouseShortcutsModifiers(KeymapManager.getInstance().getActiveKeymap(),
modifiers,
XDebuggerActions.QUICK_EVALUATE_EXPRESSION);
}