2017-08-23 12:08:03 +02:00
|
|
|
package de.jotomo.ruffyscripter.commands;
|
|
|
|
|
|
|
|
import de.jotomo.ruffyscripter.RuffyScripter;
|
|
|
|
|
|
|
|
public abstract class BaseCommand implements Command {
|
|
|
|
// RS will inject itself here
|
|
|
|
protected RuffyScripter scripter;
|
2017-08-23 12:10:50 +02:00
|
|
|
@Override public void setScripter(RuffyScripter scripter) { this.scripter = scripter; }
|
2017-08-23 12:08:03 +02:00
|
|
|
|
|
|
|
// TODO upcoming
|
|
|
|
protected volatile boolean cancelRequested = false;
|
|
|
|
public void requestCancellation() {
|
|
|
|
cancelRequested = true;
|
|
|
|
}
|
|
|
|
}
|