Support context bindings when testing with sample data

This commit is contained in:
Reinhard Pointner 2017-03-26 21:17:26 +08:00
parent 38410c1676
commit 7663977c9a
1 changed files with 3 additions and 1 deletions

View File

@ -424,6 +424,7 @@ public class FormatDialog extends JDialog {
protected MediaBindingBean restoreSample(Mode mode) {
Object info = null;
File media = null;
Map<File, ?> context = null;
try {
// restore sample from user preferences
@ -443,9 +444,10 @@ public class FormatDialog extends JDialog {
if (path != null && !path.isEmpty()) {
media = new File(path);
context = singletonMap(media, info);
}
return new MediaBindingBean(info, media);
return new MediaBindingBean(info, media, context);
}
private ExecutorService createExecutor() {