1 package tim.prune.function;
6 * Class to provide the function to delete the currently selected range
8 public class DeleteSelectedRangeFunction extends DeleteBitOfTrackFunction
12 * @param inApp application object for callback
14 public DeleteSelectedRangeFunction(App inApp)
19 /** Get the name key */
20 public String getNameKey() {
21 return "function.deleterange";
25 * @return name key for undo operation
27 protected String getUndoNameKey() {
28 return "undo.deleterange";
36 // Get the currently selected range and pass indexes to parent class
37 final int startIndex = _app.getTrackInfo().getSelection().getStart();
38 final int endIndex = _app.getTrackInfo().getSelection().getEnd();
39 deleteSection(startIndex, endIndex);