org.gamenet.application.mm8leveleditor.lod
Class ImportManager

java.lang.Object
  extended byorg.gamenet.application.mm8leveleditor.lod.ImportManager

public class ImportManager
extends Object


Nested Class Summary
 class ImportManager.ImportTask
           
 class ImportManager.UpdateTask
           
 
Field Summary
private  MonitoredTaskThread importThread
           
private  ProgressDisplayer progressDisplayer
           
 
Constructor Summary
ImportManager(ProgressDisplayer progressDisplayer)
           
 
Method Summary
 void importAndMonitorResource(LodFile oldLodFile, File newLodFileToCreate, LodResource resourceToReplace)
           
 void importAndMonitorResources(LodFile oldLodFile, File newLodFileToCreate, List filesToImportList)
           
protected  String importResources(LodFile oldLodFile, File newLodFileToCreate, List filesToImportList, LodResource resourceToImport)
           
 void updateAndMonitorResource(LodFile oldLodFile, LodResource resourceToReplace)
           
protected  String updateResource(LodFile oldLodFile, LodResource resourceToImport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

progressDisplayer

private ProgressDisplayer progressDisplayer

importThread

private MonitoredTaskThread importThread
Constructor Detail

ImportManager

public ImportManager(ProgressDisplayer progressDisplayer)
Method Detail

importAndMonitorResources

public void importAndMonitorResources(LodFile oldLodFile,
                                      File newLodFileToCreate,
                                      List filesToImportList)
Parameters:
oldLodFile - original lod file
newLodFileToCreate - new lod file based on old lod file + files to import.
filesToImportList - list of File objects to update or add to new lod file.

importAndMonitorResource

public void importAndMonitorResource(LodFile oldLodFile,
                                     File newLodFileToCreate,
                                     LodResource resourceToReplace)
Parameters:
oldLodFile - original lod file
newLodFileToCreate - new lod file based on old lod file + files to import.

updateAndMonitorResource

public void updateAndMonitorResource(LodFile oldLodFile,
                                     LodResource resourceToReplace)

updateResource

protected String updateResource(LodFile oldLodFile,
                                LodResource resourceToImport)
Parameters:
oldLodFile - original lod file

importResources

protected String importResources(LodFile oldLodFile,
                                 File newLodFileToCreate,
                                 List filesToImportList,
                                 LodResource resourceToImport)
Parameters:
oldLodFile - original lod file
newLodFileToCreate - new lod file based on old lod file + files to import.
filesToImportList - list of File objects to update or add to new lod file.