pass a UI to NAT entryProcessors

This commit is contained in:
2022-06-27 18:22:57 +00:00
parent 9f1e337069
commit 7e7053e132
13 changed files with 21 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
(prop :Map<String,Entry> entries (new Map))
(method :Void process [:Archive archive]
(method :Void process [:Archive archive &opt :ArchiveUI ui]
(doFor e (entries.iterator)
(processEntry archive e)))
(processEntry archive e ui)))
(defNew [&prop :EntryChecker canProcessEntry
&prop :EntryProcessor processEntry]
@@ -17,4 +17,4 @@
(entries.remove e.id)
(when onRemoveEntry (onRemoveEntry archive e)))))
// TODO systems may need access to a UI or ArchiveController
// TODO systems may need access to an ArchiveController