}
}));
// synthesize html generator if necessary
RPubsHtmlGenerator htmlGenerator = htmlGenerator_;
if (htmlGenerator == null)
{
htmlGenerator = new RPubsHtmlGenerator() {
@Override
public void generateRPubsHtml(String title,
String comment,
CommandWithArg<String> onCompleted)
{
onCompleted.execute(htmlFile_);
}
};
}
// generate html and initiate the upload
final String title = getTitleText();
htmlGenerator.generateRPubsHtml(
title, getCommentText(), new CommandWithArg<String>() {
@Override
public void execute(String htmlFile)
{