This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
<apidef name="actions">Actions API</apidef>
</apidefs>
<changes>
<change id="disabled-action-beep">
<api name="util"/>
<summary>Platform dependent sound when invoking a disabled action.</summary>
<version major="8" minor="39"/>
<date year="2014" month="7" day="4"/>
<author login="saubrecht"/>
<compatibility addition="yes" binary="compatible" source="compatible"/>
<description>
<p>
Only some platforms provide an audible notification when user
tries to invoke a disabled action. So instead of Toolkit.beep()
which always plays a sound a new method
<code>Utilities.disabledActionSound()<code> shoud be used instead.
</p>
</description>
<class package="org.openide.util" name="Utilities"/>
<issue number="203979"/>
</change>
<change id="try-lock">
<summary>Try to lock a Mutex</summary>
Manifest-Version: 1.0
OpenIDE-Module: org.openide.util
OpenIDE-Module-Localizing-Bundle: org/openide/util/Bundle.properties
OpenIDE-Module-Specification-Version: 8.38
OpenIDE-Module-Specification-Version: 8.39
}
/**
* On some platform this method makes a short audible beep, use it when user
* tries to invoke an action that's disabled.
* Some platforms, e.g. MS Windows do not emit any sound in such cases.
* @since 8.39
*/
public static void disabledActionBeep() {
if( isWindows() ) {
//no sound on MS Windows
return;
Toolkit.getDefaultToolkit().beep();
/** Interfaces for communication between Utilities.translate and regular
* expression impl.
*