X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2FRemoveAudioFunction.java;h=c4aa7200b3ba5e5f435fcfac4e4d9fab75c1f49a;hp=fa859bec74f2a85ed643bd988ed1eaa2c87ee6f6;hb=649c5da6ee1bbc590699e11a92316ece2ea8512d;hpb=eebbb64b5d63f9eea43a0dff908c30361a376768 diff --git a/tim/prune/function/RemoveAudioFunction.java b/tim/prune/function/RemoveAudioFunction.java index fa859be..c4aa720 100644 --- a/tim/prune/function/RemoveAudioFunction.java +++ b/tim/prune/function/RemoveAudioFunction.java @@ -5,11 +5,11 @@ import javax.swing.JOptionPane; import tim.prune.App; import tim.prune.GenericFunction; import tim.prune.I18nManager; -import tim.prune.data.AudioFile; +import tim.prune.data.AudioClip; import tim.prune.undo.UndoDeleteAudio; /** - * Function to remove the currently selected audio file + * Function to remove the currently selected audio clip */ public class RemoveAudioFunction extends GenericFunction { @@ -32,7 +32,7 @@ public class RemoveAudioFunction extends GenericFunction public void begin() { // Delete the current audio, and optionally its point too, keeping undo information - AudioFile currentAudio = _app.getTrackInfo().getCurrentAudio(); + AudioClip currentAudio = _app.getTrackInfo().getCurrentAudio(); if (currentAudio != null) { // Audio is selected, see if it has a point or not @@ -61,7 +61,7 @@ public class RemoveAudioFunction extends GenericFunction } // Add undo information to stack if necessary if (deleted) { - _app.completeFunction(undoAction, currentAudio.getFile().getName() + " " + I18nManager.getText("confirm.media.removed")); + _app.completeFunction(undoAction, currentAudio.getName() + " " + I18nManager.getText("confirm.media.removed")); } } }