/*
- * jSite - ProjectInsertPage.java - Copyright © 2006–2011 David Roden
+ * jSite - ProjectInsertPage.java - Copyright © 2006–2012 David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
return uriCopied;
}
+ /**
+ * Sets whether to use the “early encode“ flag for the insert.
+ *
+ * @param useEarlyEncode
+ * {@code true} to set the “early encode” flag for the insert,
+ * {@code false} otherwise
+ */
+ public void setUseEarlyEncode(boolean useEarlyEncode) {
+ projectInserter.setUseEarlyEncode(useEarlyEncode);
+ }
+
//
// INTERFACE InsertListener
//
@SuppressWarnings("synthetic-access")
public void run() {
+ if (total == 0) {
+ return;
+ }
progressBar.setMaximum(total);
progressBar.setValue(succeeded + failed + fatal);
int progress = (succeeded + failed + fatal) * 100 / total;