blob: 319b1964054a78e9d7d5649a10a341b4f8c08d9d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014, 2016 Orange.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*******************************************************************************/
package org.eclipse.om2m.sdt.home.actions;
import org.eclipse.om2m.sdt.args.Command;
import org.eclipse.om2m.sdt.exceptions.AccessException;
import org.eclipse.om2m.sdt.exceptions.ActionException;
import org.eclipse.om2m.sdt.home.types.ActionType;
public abstract class PreviousTrack extends Command {
public PreviousTrack(String name) {
super(name, ActionType.previousTrack);
setDoc("Go back to a previous chapter, section or similar marker in the media.");
}
public final void previousTrack() throws AccessException, ActionException {
invoke();
}
abstract protected void doPreviousTrack() throws ActionException;
@Override
protected Object doInvoke() throws ActionException {
doPreviousTrack();
return null;
}
}