Package org.emrick.project
Class ImportArchive
java.lang.Object
org.emrick.project.ImportArchive
This class handles importing the zipped Pyware archive (.3dz) contents into the project for use.
This means unzipping the specified archive file, reading 'package.ini' within the archive, and retrieving
the necessary files (e.g., audio, surface, ground).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconcatImport(ArrayList<File> archiveSrc, String drillSrc) private voidconcatImportAudio(ArrayList<String> paths) voidfullImport(ArrayList<File> archiveFiles, String drillSrc) voidfullImportInBackground(ArrayList<File> archiveFiles, String drillSrc, Consumer<ThemedLoadingDialog.StatusUpdate> progressConsumer) private voidfullImportInternal(ArrayList<File> archiveFiles, String drillSrc, Consumer<ThemedLoadingDialog.StatusUpdate> progressConsumer, boolean backgroundSafe) private voidimportAudio(ArrayList<String> paths) private voidimportDrill(String path) private voidpublish(Consumer<ThemedLoadingDialog.StatusUpdate> progressConsumer, String title, String detail) private voidrunOnEdtAndWait(Runnable runnable)
-
Field Details
-
importListener
-
-
Constructor Details
-
ImportArchive
-
-
Method Details
-
fullImport
-
fullImportInBackground
public void fullImportInBackground(ArrayList<File> archiveFiles, String drillSrc, Consumer<ThemedLoadingDialog.StatusUpdate> progressConsumer) -
fullImportInternal
private void fullImportInternal(ArrayList<File> archiveFiles, String drillSrc, Consumer<ThemedLoadingDialog.StatusUpdate> progressConsumer, boolean backgroundSafe) -
importDrill
-
importAudio
-
concatImport
-
concatImportAudio
-
publish
private void publish(Consumer<ThemedLoadingDialog.StatusUpdate> progressConsumer, String title, String detail) -
runOnEdtAndWait
-