From 79931b3dcd2fa355953d01f26eb027bded6b2ad3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 18 Mar 2012 02:14:04 +0100 Subject: [PATCH] Forward the insert priority to the project inserter. --- src/de/todesbaum/jsite/gui/ProjectInsertPage.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java index d9ee6c0..c1a5f46 100644 --- a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java @@ -54,6 +54,7 @@ import de.todesbaum.jsite.application.Project; import de.todesbaum.jsite.application.ProjectInserter; import de.todesbaum.jsite.i18n.I18n; import de.todesbaum.jsite.i18n.I18nContainer; +import de.todesbaum.util.freenet.fcp2.PriorityClass; import de.todesbaum.util.io.StreamCopier.ProgressListener; import de.todesbaum.util.swing.TWizard; import de.todesbaum.util.swing.TWizardPage; @@ -323,6 +324,16 @@ public class ProjectInsertPage extends TWizardPage implements InsertListener, Cl projectInserter.setUseEarlyEncode(useEarlyEncode); } + /** + * Sets the insert priority. + * + * @param priority + * The insert priority + */ + public void setPriority(PriorityClass priority) { + projectInserter.setPriority(priority); + } + // // INTERFACE InsertListener // -- 2.7.4