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: * plays a sound when exiting KeY
20: * @author bubel
21: */
22: public class ExitKeYSoundPlay extends PlaySound {
23:
24: /**
25: * creates an action playing a sound when exiting KeY
26: */
27: public ExitKeYSoundPlay() {
28: URL internalSoundFile = KeYResourceManager.getManager()
29: .getResourceFile(NotificationTask.class,
30: "sounds/exit.wav");
31: if (internalSoundFile != null) {
32: setSoundURL(internalSoundFile);
33: }
34: }
35:
36: }
|