1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-25 09:18:51 -05:00

* support basic testing of {model} binding

This commit is contained in:
Reinhard Pointner 2013-10-27 07:25:08 +00:00
parent f33510a5c7
commit b09fbaa3a6

View File

@ -20,6 +20,7 @@ import java.beans.PropertyChangeListener;
import java.io.File; import java.io.File;
import java.net.URI; import java.net.URI;
import java.text.Format; import java.text.Format;
import java.util.Collections;
import java.util.LinkedHashSet; import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.ResourceBundle; import java.util.ResourceBundle;
@ -416,7 +417,7 @@ public class FormatDialog extends JDialog {
media = new File(path); media = new File(path);
} }
return new MediaBindingBean(info, media, null); return new MediaBindingBean(info, media, Collections.singletonMap(media, info));
} }
private ExecutorService createExecutor() { private ExecutorService createExecutor() {
@ -611,7 +612,7 @@ public class FormatDialog extends JDialog {
File file = dialog.getMediaFile(); File file = dialog.getMediaFile();
// change sample // change sample
sample = new MediaBindingBean(info, file, null); sample = new MediaBindingBean(info, file, Collections.singletonMap(file, info));
// remember // remember
mode.persistentSample().setValue(info == null ? "" : JsonWriter.toJson(info)); mode.persistentSample().setValue(info == null ? "" : JsonWriter.toJson(info));