20 package net.sf.gridarta.commands;
23 import java.io.IOException;
25 import net.
sf.japi.swing.action.ActionBuilder;
26 import net.
sf.japi.swing.action.ActionBuilderFactory;
27 import net.
sf.japi.swing.misc.Progress;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
43 private static final ActionBuilder
ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder(
"net.sf.gridarta");
76 if (!resources.canWriteCollected()) {
77 throw new IllegalArgumentException();
88 thread =
new Thread(
this);
116 }
catch (
final IOException e) {
117 ACTION_BUILDER.showMessageDialog(progress.getParentComponent(),
"archCollectErrorIOException",
"arches, animations and animtree, images", e);
A Collector is capable of iterating over a collection of Collectables and collecting them in a separa...
void waitUntilFinished()
Waits until collection has finished.
Collector(@NotNull final Progress progress, @NotNull final AbstractResources<?, ?, ?> resources, @NotNull final File collectedDirectory)
Create a Collector.
void start()
Starts collecting.
static final ActionBuilder ACTION_BUILDER
Action Builder.
Base package of all Gridarta classes.
final Progress progress
The Progress to use.
Thread thread
The worker thread.
final AbstractResources<?, ?, ?> resources
The Collectables.
void writeCollected(@NotNull final Progress progress, @NotNull final File collectedDirectory)
Writes the resources in collected form.
final File collectedDirectory
The destination directory to write files to.