this.packerUi = packerUi;
}
@Override
public void examine(File file, ImportParameters params) {
ExtractDescriptorCallback callback = new ExtractorCallbackImpl(window, file);
if (file.isDirectory()) {
callback.failed("The path \"" + file.getAbsolutePath() + "\" is a folder. You need to select a file.", null);
} else if (file.exists()) {
packerUi.extractDescriptor(file, params, callback);
} else {
callback.failed("The file \"" + file.getAbsolutePath() + "\" does not exist.", null);
}
}