Search in sources :

Example 1 with UndoDeleteSound

use of com.bladecoder.engineeditor.undo.UndoDeleteSound in project bladecoder-adventure-engine by bladecoder.

the class SoundList method delete.

@Override
protected void delete() {
    SoundDesc s = removeSelected();
    parent.getSounds().remove(s.getId());
    // UNDO
    Ctx.project.getUndoStack().add(new UndoDeleteSound(s));
    Ctx.project.setModified();
}
Also used : SoundDesc(com.bladecoder.engine.model.SoundDesc) UndoDeleteSound(com.bladecoder.engineeditor.undo.UndoDeleteSound)

Aggregations

SoundDesc (com.bladecoder.engine.model.SoundDesc)1 UndoDeleteSound (com.bladecoder.engineeditor.undo.UndoDeleteSound)1