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 17.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 the currently selected proof has been
20: * closed
21: * @author bubel
22: */
23: public class ProofClosedSoundPlay extends PlaySound {
24:
25: /**
26: * creates an instance of this notification action
27: *
28: */
29: public ProofClosedSoundPlay() {
30: URL internalSoundFile = KeYResourceManager.getManager()
31: .getResourceFile(NotificationTask.class,
32: "sounds/trumpet.wav");
33: if (internalSoundFile != null) {
34: setSoundURL(internalSoundFile);
35: }
36: }
37: }
|