Lines 325-330
Link Here
|
325 |
return (getOperatingSystem() & OS_WINDOWS_MASK) != 0; |
325 |
return (getOperatingSystem() & OS_WINDOWS_MASK) != 0; |
326 |
} |
326 |
} |
327 |
|
327 |
|
|
|
328 |
/** Test whether NetBeans is running on MacOS. |
329 |
* @since 7.7 |
330 |
* @return <code>true</code> if Mac, <code>false</code> if some other manner of operating system |
331 |
*/ |
332 |
public static final boolean isMac() { |
333 |
return (getOperatingSystem() & OS_MAC) != 0; |
334 |
} |
335 |
|
328 |
/** Test whether NetBeans is running on some variant of Unix. |
336 |
/** Test whether NetBeans is running on some variant of Unix. |
329 |
* Linux is included as well as the commercial vendors. |
337 |
* Linux is included as well as the commercial vendors. |
330 |
* @return <code>true</code> some sort of Unix, <code>false</code> if some other manner of operating system |
338 |
* @return <code>true</code> some sort of Unix, <code>false</code> if some other manner of operating system |
Lines 1701-1707
Link Here
|
1701 |
if (wildcard) { |
1709 |
if (wildcard) { |
1702 |
needed |= Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); |
1710 |
needed |= Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); |
1703 |
|
1711 |
|
1704 |
if ((getOperatingSystem() & OS_MAC) != 0) { |
1712 |
if (isMac()) { |
1705 |
if (!usableKeyOnMac(i.intValue(), needed)) { |
1713 |
if (!usableKeyOnMac(i.intValue(), needed)) { |
1706 |
needed &= ~Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); |
1714 |
needed &= ~Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); |
1707 |
needed |= KeyEvent.CTRL_MASK; |
1715 |
needed |= KeyEvent.CTRL_MASK; |
Lines 1994-2000
Link Here
|
1994 |
} |
2002 |
} |
1995 |
|
2003 |
|
1996 |
/** @return size of the screen. The size is modified for Windows OS |
2004 |
/** @return size of the screen. The size is modified for Windows OS |
1997 |
* - some pointes are subtracted to reflect a presence of the taskbar |
2005 |
* - some points are subtracted to reflect a presence of the taskbar |
1998 |
* |
2006 |
* |
1999 |
* @deprecated this method is almost useless in multiple monitor configuration |
2007 |
* @deprecated this method is almost useless in multiple monitor configuration |
2000 |
* |
2008 |
* |
Lines 2007-2013
Link Here
|
2007 |
|
2015 |
|
2008 |
if (isWindows() && !Boolean.getBoolean("netbeans.no.taskbar")) { |
2016 |
if (isWindows() && !Boolean.getBoolean("netbeans.no.taskbar")) { |
2009 |
screenSize.height -= TYPICAL_WINDOWS_TASKBAR_HEIGHT; |
2017 |
screenSize.height -= TYPICAL_WINDOWS_TASKBAR_HEIGHT; |
2010 |
} else if ((getOperatingSystem() & OS_MAC) != 0) { |
2018 |
} else if (isMac()) { |
2011 |
screenSize.height -= TYPICAL_MACOSX_MENU_HEIGHT; |
2019 |
screenSize.height -= TYPICAL_MACOSX_MENU_HEIGHT; |
2012 |
} |
2020 |
} |
2013 |
|
2021 |
|
Lines 2803-2809
Link Here
|
2803 |
Image image = null; |
2811 |
Image image = null; |
2804 |
|
2812 |
|
2805 |
// First check for Mac because its part of the Unix_Mask |
2813 |
// First check for Mac because its part of the Unix_Mask |
2806 |
if (getOperatingSystem() == OS_MAC) { |
2814 |
if (isMac()) { |
2807 |
image = loadImage("org/openide/util/progress-cursor-mac.gif"); //NOI18N |
2815 |
image = loadImage("org/openide/util/progress-cursor-mac.gif"); //NOI18N |
2808 |
} else if (isUnix()) { |
2816 |
} else if (isUnix()) { |
2809 |
image = loadImage("org/openide/util/progress-cursor-motif.gif"); //NOI18N |
2817 |
image = loadImage("org/openide/util/progress-cursor-motif.gif"); //NOI18N |