 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.commands;
23 import java.io.IOException;
25 import net.
sf.japi.swing.misc.Progress;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
76 throw new IllegalArgumentException(
"can't collect already collected archetypes");
87 thread =
new Thread(() -> {
90 }
catch (
final IOException e) {
120 private void run() throws IOException {
final Progress progress
The Progress to use.
Base package of all Gridarta classes.
A Collector is capable of iterating over a collection of {Collectables} and collecting them in a sepa...
void writeCollected(@NotNull final Progress progress, @NotNull final File collectedDirectory)
Writes the resources in collected form.
void waitUntilFinished()
Waits until collection has finished.
void start()
Starts collecting.
boolean canWriteCollected()
Whether the resources can be written in collected form.
IOException ioException
The I/O error if collection fails or.
final File collectedDirectory
The destination directory to write files to.
void run()
Collect the existing arches and create archive-files for editor use as well as the Crossfire or Daimo...
Collector(@NotNull final Progress progress, @NotNull final AbstractResources<?, ?, ?> resources, @NotNull final File collectedDirectory)
Creates a new instance.
final AbstractResources<?, ?, ?> resources
The Collectables.
Thread thread
The worker thread.