@Override
 public List<ImageInformation> getImageInformation(Project project) {
   final ImageInformation base =
       ImageInformation.newBuilder()
           .setExportName(exportName)
           .setImageFile(imageFile)
           .setAlgorithm(algorithm)
           .setMethod(algorithm.getMethod(method))
           .setExportPath(exportRoot)
           .setNinePatch(isNinePatch)
           .setFormat(format)
           .build();
   final List<ImageInformation> images = new ArrayList<ImageInformation>();
   for (Resolution resolution : targetResolutions) {
     images.add(
         ImageInformation.newBuilder(base)
             .setTargetResolution(resolution)
             .setFactor(getRealScaleFactor(resolution))
             .build());
   }
   return images;
 }
 @Override
 public List<ImageInformation> getImageInformation(
     Project project,
     String selectedFile,
     List<ImageInformation> imageInformation,
     Resolution sourceResolution) {
   final ImageInformation base =
       ImageInformation.newBuilder(imageInformation.get(0))
           .setAlgorithm(algorithm)
           .setMethod(algorithm.getMethod(method))
           .setExportPath(exportRoot)
           .setFormat(format)
           .build();
   final List<ImageInformation> images = new ArrayList<ImageInformation>();
   for (Resolution resolution : targetResolutions) {
     images.add(
         ImageInformation.newBuilder(base)
             .setTargetResolution(resolution)
             .setFactor(getRealScaleFactor(resolution))
             .build());
   }
   return images;
 }
  public AddItemBatchScaleImporterController(
      Resolution sourceResolution, List<ImageInformation> information) {
    this.observers = new HashSet<AddItemBatchScaleDialogObserver>();
    this.targetResolutions = new HashSet<Resolution>();
    for (ImageInformation imageInformation : information) {
      targetResolutions.add(imageInformation.getTargetResolution());
    }
    final ImageInformation baseInformation = information.get(0);
    init(baseInformation.getImageFile());

    this.exportName = baseInformation.getExportName();
    this.sourceResolution = sourceResolution;
    this.algorithm = baseInformation.getAlgorithm();
    this.method = algorithm.getPrettyMethod(baseInformation.getMethod());
    this.exportRoot = baseInformation.getExportPath();
    this.isNinePatch = baseInformation.isNinePatch();
    this.format = baseInformation.getFormat();

    this.targetHeight =
        getOriginalTargetSize(
            sourceResolution,
            baseInformation.getTargetResolution(),
            targetHeight,
            baseInformation.getFactor());
    this.targetWidth =
        getOriginalTargetSize(
            sourceResolution,
            baseInformation.getTargetResolution(),
            targetWidth,
            baseInformation.getFactor());
  }