Package net.sf.jabref

Examples of net.sf.jabref.OpenFileFilter


     * @return an array of selected file paths, or an empty array if no selection is made.
     */
    public static String[] getMultipleFiles(JFrame owner, File directory, String extension,
                                            boolean updateWorkingdirectory) {

        OpenFileFilter off = null;
        if (extension == null)
            off = new OpenFileFilter();
        else if (!extension.equals(Globals.NONE))
            off = new OpenFileFilter(extension);

        Object files = getNewFileImpl(owner, directory, extension, null, off,
                JFileChooser.OPEN_DIALOG, updateWorkingdirectory, false, true, null);

        if (files instanceof String[]) {
View Full Code Here


    public static String getNewFile(JFrame owner, File directory, String extension,
                                    String description, int dialogType, boolean updateWorkingDirectory, boolean dirOnly,
                                    JComponent accessory) {

        OpenFileFilter off = null;

        if (extension == null)
            off = new OpenFileFilter();
        else if (!extension.equals(Globals.NONE))
            off = new OpenFileFilter(extension);

        return (String) getNewFileImpl(owner, directory, extension, description, off, dialogType,
                updateWorkingDirectory, dirOnly, false, accessory);
    }
View Full Code Here

TOP

Related Classes of net.sf.jabref.OpenFileFilter

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.