context.getDeviceRepositoryAccessorManager();
UndoRedoManager undoRedoManager =
context.getUndoRedoManager();
try {
// we don't allow device deletions to be undoable
undoRedoManager.enable(false);
dram.removeDevice(getDeviceName(selected));
} catch (RepositoryException e) {
EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);
} finally {
// ensure the undo redo manager is enabled.