01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: /*
09: * Created on 18.03.2005
10: */
11: package de.uka.ilkd.key.gui.notification.actions;
12:
13: import java.net.URL;
14:
15: import de.uka.ilkd.key.gui.notification.NotificationTask;
16: import de.uka.ilkd.key.util.KeYResourceManager;
17:
18: /**
19: * Displays a warning sound when an unexpected failure occured.
20: * @author bubel
21: */
22: public class GeneralFailureSoundPlay extends PlaySound {
23:
24: /**
25: * creates an action playing a warning sound in case of an
26: * unexpected error
27: */
28: public GeneralFailureSoundPlay() {
29: URL internalSoundFile = KeYResourceManager.getManager()
30: .getResourceFile(NotificationTask.class,
31: "sounds/error.wav");
32: if (internalSoundFile != null) {
33: setSoundURL(internalSoundFile);
34: }
35: }
36:
37: }
|