Forward the insert priority to the project inserter.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 18 Mar 2012 01:14:04 +0000 (02:14 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 18 Mar 2012 01:14:04 +0000 (02:14 +0100)
src/de/todesbaum/jsite/gui/ProjectInsertPage.java

index d9ee6c0..c1a5f46 100644 (file)
@@ -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
        //