use of org.gephi.io.importer.api.ContainerUnloader in project gephi by gephi.
the class ImportControllerImpl method process.
@Override
public void process(Container[] containers, Processor processor, Workspace workspace) {
ContainerUnloader[] unloaders = new ContainerUnloader[containers.length];
int i = 0;
for (Container container : containers) {
container.closeLoader();
if (container.getUnloader().isAutoScale()) {
Scaler scaler = Lookup.getDefault().lookup(Scaler.class);
if (scaler != null) {
scaler.doScale(container);
}
}
unloaders[i++] = container.getUnloader();
}
processor.setContainers(unloaders);
processor.setWorkspace(workspace);
processor.process();
}
Aggregations