Package org.jitterbit.ui.util.file

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


        public File getFile() {
            return UiThreadSupplier.call(new Supplier<File>() {

                @Override
                public File get() {
                    FileChooser fc = getFileChooser();
                    File suggested = getSuggestedFile(fc);
                    File file = fc.getFileToSave(null, FILE_FILTER, recentFiles, "Export mappings to file:", suggested);
                    return file;
                }
            });
        }
View Full Code Here


        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

            });
        }

        private FileChooser getFileChooser() {
            ApplicationWindow window = view.getWindow();
            FileChooser fc = ApplicationFileChooser.getInstance(window);
            return fc;
        }
View Full Code Here

            return UiThreadSupplier.call(new Supplier<File>() {

                @Override
                public File get() {
                    ApplicationWindow window = view.getWindow();
                    FileChooser fc = ApplicationFileChooser.getInstance(window);
                    File file = fc.getFileToOpen(null, FILE_FILTER, recentFiles, "Import mappings from file:");
                    return file;
                }
            });
        }
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

                }
            }
        }

        private File getOutputFile(OperationLogEntry logEntry) {
            FileChooser fc = ApplicationFileChooser.getInstance(null);
            fc.setSelectedFile(getSuggestedFile(logEntry));
            return fc.getFileToSave(
                            UiUtils.getActiveFrame(),
                            new SuffixFileChooserFilter(new String[] { fileExtension }),
                            LAST_SAVED_FILE,
                            null,
                            getSuggestedFile(logEntry));
View Full Code Here

        locationBrowser = createSelectorPanel(window);
    }

    private FileSelectorPanel createSelectorPanel(ApplicationWindow window) {
        FileSelectorPanelFactory factory = FileSelectorFactory.getFactory();
        FileChooser fc = ApplicationFileChooser.getInstance(window);
        RecentFileStore recentFiles = getRecentFileStore();
        FileSelectorPanel panel = factory.recentFilesPanel(fc, FileSelectorPanel.OPEN,
                        Strings.getJitterPackString("Import.Browser.Title"), recentFiles);
        panel.setFileFilter(JitterPackerUi.FILE_FILTER);
        LabelDecorator d = TextStyles.DefaultText.asLabelDecorator(JitterpackResources.IMPORT_16);
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

TOP

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

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.