Example usage for com.intellij.openapi.keymap KeymapManager X_WINDOW_KEYMAP

List of usage examples for com.intellij.openapi.keymap KeymapManager X_WINDOW_KEYMAP

Introduction

In this page you can find the example usage for com.intellij.openapi.keymap KeymapManager X_WINDOW_KEYMAP.

Prototype

String X_WINDOW_KEYMAP

To view the source code for com.intellij.openapi.keymap KeymapManager X_WINDOW_KEYMAP.

Click Source Link

Usage

From source file:com.intellij.application.options.InitialConfigurationDialog.java

License:Apache License

private static boolean matchesPlatform(Keymap keymap) {
    final String name = keymap.getName();
    if (KeymapManager.DEFAULT_IDEA_KEYMAP.equals(name)) {
        return SystemInfo.isWindows;
    } else if (KeymapManager.MAC_OS_X_KEYMAP.equals(name) || "Mac OS X 10.5+".equals(name)) {
        return SystemInfo.isMac;
    } else if (KeymapManager.X_WINDOW_KEYMAP.equals(name) || "Default for GNOME".equals(name)
            || "Default for KDE".equals(name)) {
        return SystemInfo.isXWindow;
    }/*from www. ja  va2  s  . c  o  m*/
    return true;
}