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.

View | Details | Raw Unified | Return to bug 203979
Collapse All | Expand All

(-)openide.util/apichanges.xml (+18 lines)
Lines 51-56 Link Here
51
    <apidef name="actions">Actions API</apidef>
51
    <apidef name="actions">Actions API</apidef>
52
</apidefs>
52
</apidefs>
53
<changes>
53
<changes>
54
    <change id="disabled-action-beep">
55
        <api name="util"/>
56
        <summary>Platform dependent sound when invoking a disabled action.</summary>
57
        <version major="8" minor="39"/>
58
        <date year="2014" month="7" day="4"/>
59
        <author login="saubrecht"/>
60
        <compatibility addition="yes" binary="compatible" source="compatible"/>
61
        <description>
62
            <p>
63
                Only some platforms provide an audible notification when user 
64
                tries to invoke a disabled action. So instead of Toolkit.beep() 
65
                which always plays a sound a new method 
66
                <code>Utilities.disabledActionSound()<code> shoud be used instead.
67
            </p>
68
        </description>
69
        <class package="org.openide.util" name="Utilities"/>
70
        <issue number="203979"/>
71
    </change>
54
    <change id="try-lock">
72
    <change id="try-lock">
55
        <api name="util"/>
73
        <api name="util"/>
56
        <summary>Try to lock a Mutex</summary>
74
        <summary>Try to lock a Mutex</summary>
(-)openide.util/manifest.mf (-1 / +1 lines)
Lines 1-5 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.openide.util
2
OpenIDE-Module: org.openide.util
3
OpenIDE-Module-Localizing-Bundle: org/openide/util/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/openide/util/Bundle.properties
4
OpenIDE-Module-Specification-Version: 8.38
4
OpenIDE-Module-Specification-Version: 8.39
5
5
(-)openide.util/src/org/openide/util/Utilities.java (+14 lines)
Lines 3215-3220 Link Here
3215
        }
3215
        }
3216
    }
3216
    }
3217
3217
3218
    /**
3219
     * On some platform this method makes a short audible beep, use it when user 
3220
     * tries to invoke an action that's disabled.
3221
     * Some platforms, e.g. MS Windows do not emit any sound in such cases.
3222
     * @since 8.39
3223
     */
3224
    public static void disabledActionBeep() {
3225
        if( isWindows() ) {
3226
            //no sound on MS Windows
3227
            return;
3228
        }
3229
        Toolkit.getDefaultToolkit().beep();
3230
    }
3231
3218
    /** Interfaces for communication between Utilities.translate and regular
3232
    /** Interfaces for communication between Utilities.translate and regular
3219
     * expression impl.
3233
     * expression impl.
3220
     *
3234
     *

Return to bug 203979