/** Test whether NetBeans is running on some variant of Windows. * @return <code>true</code> if Windows, <code>false</code> if some other manner of operating system */ public static boolean isWindows() { return (getOperatingSystem() & OS_WINDOWS_MASK) != 0; }
/** Test whether NetBeans is running on some variant of Windows. * @return <code>true</code> if Windows, <code>false</code> if some other manner of operating system */ public static boolean isWindows() { return (getOperatingSystem() & OS_WINDOWS_MASK) != 0; }
/** Test whether the operating system supports icons on frames (windows). * @return <code>true</code> if it does <em>not</em> * */ public static boolean isLargeFrameIcons() { return (getOperatingSystem() == OS_SOLARIS) || (getOperatingSystem() == OS_HP); }
/** Test whether NetBeans is running on some variant of Unix. * Linux is included as well as the commercial vendors, and Mac OS X. * @return <code>true</code> some sort of Unix, <code>false</code> if some other manner of operating system */ public static boolean isUnix() { return (getOperatingSystem() & OS_UNIX_MASK) != 0; }
/** Test whether the operating system supports icons on frames (windows). * @return <code>true</code> if it does <em>not</em> * */ public static boolean isLargeFrameIcons() { return (getOperatingSystem() == OS_SOLARIS) || (getOperatingSystem() == OS_HP); }
/** Test whether NetBeans is running on some variant of Unix. * Linux is included as well as the commercial vendors, and Mac OS X. * @return <code>true</code> some sort of Unix, <code>false</code> if some other manner of operating system */ public static boolean isUnix() { return (getOperatingSystem() & OS_UNIX_MASK) != 0; }
/** Test whether the operating system supports icons on frames (windows). * @return <code>true</code> if it does <em>not</em> * */ public static boolean isLargeFrameIcons() { return (getOperatingSystem() == OS_SOLARIS) || (getOperatingSystem() == OS_HP); }
/** Test whether NetBeans is running on some variant of Unix. * Linux is included as well as the commercial vendors, and Mac OS X. * @return <code>true</code> some sort of Unix, <code>false</code> if some other manner of operating system */ public static boolean isUnix() { return (getOperatingSystem() & OS_UNIX_MASK) != 0; }
/** Test whether the operating system supports icons on frames (windows). * @return <code>true</code> if it does <em>not</em> * */ public static boolean isLargeFrameIcons() { return (getOperatingSystem() == OS_SOLARIS) || (getOperatingSystem() == OS_HP); }
/** Test whether NetBeans is running on some variant of Unix. * Linux is included as well as the commercial vendors, and Mac OS X. * @return <code>true</code> some sort of Unix, <code>false</code> if some other manner of operating system */ public static boolean isUnix() { return (getOperatingSystem() & OS_UNIX_MASK) != 0; }
/** Test whether NetBeans is running on some variant of Windows. * @return <code>true</code> if Windows, <code>false</code> if some other manner of operating system */ public static boolean isWindows() { return (getOperatingSystem() & OS_WINDOWS_MASK) != 0; }
/** Test whether NetBeans is running on some variant of Windows. * @return <code>true</code> if Windows, <code>false</code> if some other manner of operating system */ public static boolean isWindows() { return (getOperatingSystem() & OS_WINDOWS_MASK) != 0; }
/** * need to guard against headlessExceptions when testing. * @return the acceletor mask for shortcuts. */ private static int getMenuShortCutKeyMask() { if (GraphicsEnvironment.isHeadless()) { return ((getOperatingSystem() & OS_MAC) != 0) ? KeyEvent.META_MASK : KeyEvent.CTRL_MASK; } return Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); }
/** * need to guard against headlessExceptions when testing. * @return the acceletor mask for shortcuts. */ private static int getMenuShortCutKeyMask() { if (GraphicsEnvironment.isHeadless()) { return ((getOperatingSystem() & OS_MAC) != 0) ? KeyEvent.META_MASK : KeyEvent.CTRL_MASK; } return Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); }
/** * need to guard against headlessExceptions when testing. * @return the acceletor mask for shortcuts. */ private static int getMenuShortCutKeyMask() { if (GraphicsEnvironment.isHeadless()) { return ((getOperatingSystem() & OS_MAC) != 0) ? KeyEvent.META_MASK : KeyEvent.CTRL_MASK; } return Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); }
/** * need to guard against headlessExceptions when testing. * @return the acceletor mask for shortcuts. */ private static int getMenuShortCutKeyMask() { if (GraphicsEnvironment.isHeadless()) { return ((getOperatingSystem() & OS_MAC) != 0) ? KeyEvent.META_MASK : KeyEvent.CTRL_MASK; } return Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); }
needed |= getMenuShortCutKeyMask(); if ((getOperatingSystem() & OS_MAC) != 0) { if (!usableKeyOnMac(i.intValue(), needed)) { needed &= ~getMenuShortCutKeyMask(); if (getOperatingSystem() == OS_MAC) { needed |= KeyEvent.CTRL_MASK; } else {
needed |= getMenuShortCutKeyMask(); if ((getOperatingSystem() & OS_MAC) != 0) { if (!usableKeyOnMac(i.intValue(), needed)) { needed &= ~getMenuShortCutKeyMask(); if (getOperatingSystem() == OS_MAC) { needed |= KeyEvent.CTRL_MASK; } else {
needed |= getMenuShortCutKeyMask(); if ((getOperatingSystem() & OS_MAC) != 0) { if (!usableKeyOnMac(i.intValue(), needed)) { needed &= ~getMenuShortCutKeyMask(); if (getOperatingSystem() == OS_MAC) { needed |= KeyEvent.CTRL_MASK; } else {
needed |= getMenuShortCutKeyMask(); if ((getOperatingSystem() & OS_MAC) != 0) { if (!usableKeyOnMac(i.intValue(), needed)) { needed &= ~getMenuShortCutKeyMask(); if (getOperatingSystem() == OS_MAC) { needed |= KeyEvent.CTRL_MASK; } else {