Package org.jitterbit.ui.util.file

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


        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" }));
        panel.setUseTitleLabel(false);
        return panel;
    }
View Full Code Here


     * file chooser.
     */
    public static final FileFilter FILE_FILTER = createFileFilter();

    private static FileFilter createFileFilter() {
        SuffixFileChooserFilter f = new SuffixFileChooserFilter(JitterPackConstants.FILE_EXTENSION, true);
        f.setDescription(JitterPackConstants.SINGULAR + " files");
        return f;
    }
View Full Code Here

        FileSelectorPanel p = factory.recentFilesPanel(
                        fc,
                        FileSelectorPanel.OPEN,
                        PackageResources.LocalWsdlFileDefiner.BROWSE_DIALOG_TITLE,
                        recentFiles);
        p.setFileFilter(new SuffixFileChooserFilter(new String[] { "wsdl" }));
        p.setUseTitleLabel(false);
        p.addInputChangeListener(new InputChangeListener() {

            @Override
            public void inputChanged(InputChangeEvent e) {
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

        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");
        panel.setFileFilter(new SuffixFileChooserFilter(suffices));
        panel.setUseTitleLabel(false);
        panel.setActive(true);
        return panel;
    }
View Full Code Here

  }

  private void saveMappings(boolean bIsSource){
    File file=ApplicationFileChooser.getInstance(m_window).getFileToSave(
                        this,
                        new SuffixFileChooserFilter(FILE_EXTENSION, true),
                        bIsSource?"Write source mapping file":"Write target mapping file");
    if(file==null)return;
        Map<Node,Node> sourceTranslationTable=m_sourceMapArea.m_table_old2new, targetTranslationTableTable_R=m_targetMapArea.m_table_new2old;
    String[] lines=new String[sourceTranslationTable.size()];
    Map<Node,Node> table=bIsSource?sourceTranslationTable:targetTranslationTableTable_R;
View Full Code Here

                @Override
                public void actionPerformed(ActionEvent evt) {
                    file = ApplicationFileChooser.getInstance(m_window).getFileToOpen(
                                    ReadMappingDialog.this,
                                    new SuffixFileChooserFilter(FILE_EXTENSION, true),
                                    getTitle());
                    if (file != null) {
                        filePathTextField.setText(file.getAbsolutePath());
                    }
                }
View Full Code Here

TOP

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

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.