private boolean isUseSystemLook() { boolean useSystem; if ("default".equalsIgnoreCase(myMode.asString())) { useSystem = true; } else if ("system".equalsIgnoreCase(myMode.asString())) { useSystem = true; } else if ("graphite".equalsIgnoreCase(myMode.asString())) { useSystem = false; } else { useSystem = false; } return useSystem; }
private String getModifierRegistryValue() { String value = myModifiersValue.asString().trim(); if (value.length() > 0) return value; if (SystemInfo.isMac) { return "control alt"; } else { return "shift alt"; } }
private static void updateTooltipRequestKey(RegistryValue value) { final String text = value.asString(); ourTooltipKeys.clear(); ourOtherTooltipKeys.clear(); processKey(text.contains("meta"), InputEvent.META_MASK); processKey(text.contains("control") || text.contains("ctrl"), InputEvent.CTRL_MASK); processKey(text.contains("shift"), InputEvent.SHIFT_MASK); processKey(text.contains("alt"), InputEvent.ALT_MASK); }