Package org.jitterbit.ui.util.file

Examples of org.jitterbit.ui.util.file.DefaultFileChooser


        listenToUi();
        bindProperties(model);
    }

    private FileSelectorPanel createFileSelector() {
        FileChooser fc = new DefaultFileChooser(ApplicationFileChooserFactory.getFactory());
        RecentFileStore recentFiles = getRecentFileStore();
        FileSelectorPanelFactory factory = FileSelectorFactory.getFactory();
        FileSelectorPanel panel = factory.recentFilesPanel(fc, FileSelectorPanel.OPEN,
                        "Select an XSD or DTD file for upload", recentFiles);
        panel.setFileFilter(new SuffixFileChooserFilter(new String[] { "dtd", "xsd" }));
View Full Code Here


        inputSiteImplementor = new InputPanelSiteImplementor(inputPanel);
        setInitialState();
    }

    private FileSelectorPanel createDestinationUi() {
        FileChooser fc = new DefaultFileChooser(ApplicationFileChooserFactory.getFactory());
        fc.setOverwriteConfirmer(FileChooser.ALWAYS_ALLOW_OVERWRITES);
        RecentFileStore recentFiles = getRecentFileStore();
        FileSelectorPanelFactory factory = FileSelectorFactory.getFactory();
        FileSelectorPanel selector = factory.singleFilePanel(fc, FileSelectorPanel.SAVE,
                        Strings.getJitterPackString("Export.FileSelector.Title"), recentFiles);
        selector.setFileFilter(JitterPackerUi.FILE_FILTER);
View Full Code Here

    }


    private FileSelectorPanel createFileSelector() {
        FileSelectorPanelFactory factory = FileSelectorFactory.getFactory();
        FileChooser fc = new DefaultFileChooser(ApplicationFileChooserFactory.getFactory());
        RecentFileStore recentFiles = getRecentFileStore();
        FileSelectorPanel p = factory.recentFilesPanel(
                        fc,
                        FileSelectorPanel.OPEN,
                        PackageResources.LocalWsdlFileDefiner.BROWSE_DIALOG_TITLE,
View Full Code Here

            }
        });
    }

    private FileSelectorPanel createFilePanel() {
        FileChooser fc = new DefaultFileChooser(ApplicationFileChooserFactory.getFactory());
        RecentFileStore recentFiles = getRecentFileStore();
        FileSelectorPanelFactory factory = FileSelectorFactory.getFactory();
        FileSelectorPanel panel = factory.singleFilePanel(fc, FileSelectorPanel.OPEN,
                        PackageResources.RootSelector.BROWSE_TITLE, recentFiles);
        panel.setFileFilter(new XmlFileFilter());
View Full Code Here

        INSTANCES.put(window, this);
    }
   
    private ApplicationFileChooser(JFrame frame) {
        this.frame = frame;
        delegate = new DefaultFileChooser(ApplicationFileChooserFactory.getFactory(), new ConfirmerImpl(frame));
    }
View Full Code Here

        setToolbarButtons(buttons);
    }

    private synchronized FileChooser getFileChooser() {
        if (fileChooser == null) {
            fileChooser = new DefaultFileChooser(new DefaultFileChooserFactory());
        }
        return fileChooser;
    }
View Full Code Here

            copyFile(file);
        }
    }

    private DefaultFileChooser createFileChooser() {
        DefaultFileChooser fc = new DefaultFileChooser();
        fc.setOverwriteConfirmer(new DefaultFileChooser.DefaultConfirmer());
        if (directoryPreference != null) {
            File dir = directoryPreference.getFile(DIRECTORY_KEY, null);
            if (dir != null) {
                fc.setCurrentDirectory(dir);
            }
        }
        return fc;
    }
View Full Code Here

        }
    }
   
    private String askUserForPath() {
        if (fileChooser == null) {
            fileChooser = new DefaultFileChooser(new DefaultFileChooserFactory());
            fileChooser.setSelectedFile(new File(fileChooser.getCurrentDirectory(), "jitterbit-client-errors.log"));
        }
        File file = fileChooser.getFileToSave(null, null, "Write all logged errors to file");
        if (file != null) {
            return file.getAbsolutePath();
View Full Code Here

        fileReview = new XsdFileReview();
        listenToTheUi();
    }
   
    private FileSelectorPanel createFileSelector(FileType fileType) {
        FileChooser fc = new DefaultFileChooser(ApplicationFileChooserFactory.getFactory());
        RecentFileStore recentFiles = getRecentFileStore(fileType);
        FileSelectorPanelFactory factory = FileSelectorFactory.getFactory();
        FileSelectorPanel panel = factory.recentFilesPanel(fc, FileSelectorPanel.OPEN,
                        "Select the " + fileType + " sample file", recentFiles);
        List<String> suffices = Arrays.asList(fileType.getFileExtension(), ".zip", ".gz");
View Full Code Here

        return selected;
    }

    private FileChooser getFileChooser() {
        if (fileChooser == null) {
            fileChooser = new DefaultFileChooser(ApplicationFileChooserFactory.getFactory());
        }
        return fileChooser;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.util.file.DefaultFileChooser

Copyright © 2018 www.massapicom. 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.