use of jack.rm.plugins.types.RenamerPlugin in project rom-manager by Jakz.
the class Organizer method organize.
public void organize() {
RenamerPlugin renamer = settings().getRenamer();
FolderPlugin organizerPlugin = settings().getFolderOrganizer();
boolean hasCleanupPhase = settings().hasCleanupPlugins();
Consumer<Boolean> cleanupPhase = b -> {
cleanup();
Main.setManager.saveSetStatus(set);
};
Consumer<Boolean> moverPhase = organizerPlugin == null ? cleanupPhase : b -> new MoverWorker(set, organizerPlugin, cleanupPhase).execute();
Consumer<Boolean> renamerPhase = renamer == null ? moverPhase : b -> new RenamerWorker(set, renamer, moverPhase).execute();
renamerPhase.accept(true);
}
Aggregations