Package org.jitterbit.integration.client.project.jitterpack

Examples of org.jitterbit.integration.client.project.jitterpack.ExtractDescriptorCallback.failed()


    @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);
        }
View Full Code Here


        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);
        }
    }


    private static class ExtractorCallbackImpl implements ExtractDescriptorCallback {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.