Show ThinkcapMain.java syntax highlighted
package org.integratedmodelling.thinkcap.basecommands;
import org.integratedmodelling.thinkcap.ThinkcapAction;
import org.integratedmodelling.thinkcap.ThinkcapAnswer;
import org.integratedmodelling.thinkcap.ThinkcapCommand;
import org.integratedmodelling.thinklab.command.CommandDeclaration;
import org.integratedmodelling.thinklab.command.CommandPattern;
import org.integratedmodelling.thinklab.exception.ThinklabException;
import org.integratedmodelling.thinklab.interfaces.IAction;
public class ThinkcapMain extends CommandPattern {
class ThinkcapMainAction extends ThinkcapAction {
@Override
public void execute(ThinkcapCommand command, ThinkcapAnswer value) throws ThinklabException {
value.setOutputTemplate("main");
}
}
@Override
public CommandDeclaration createCommand() {
return new CommandDeclaration("ThinkCap", "");
}
@Override
public IAction createAction() {
return new ThinkcapMainAction();
}
}
See more files for this project here