Package org.infernus.idea.checkstyle.util

Examples of org.infernus.idea.checkstyle.util.ExtensionFileChooserDescriptor


                toSelect = LocalFileSystem.getInstance().findFileByPath(configFilePath);
            } else {
                toSelect = project.getBaseDir();
            }

            final FileChooserDescriptor descriptor = new ExtensionFileChooserDescriptor(
                    (String) getValue(Action.NAME),
                    (String) getValue(Action.SHORT_DESCRIPTION),
                    "xml", "checkstyle");
            final VirtualFile chosen = FileChooser.chooseFile(descriptor, project, toSelect);
            if (chosen != null) {
View Full Code Here


            putValue(Action.SHORT_DESCRIPTION, resources.getString("config.path.add.tooltip"));
            putValue(Action.LONG_DESCRIPTION, resources.getString("config.path.add.tooltip"));
        }

        public void actionPerformed(final ActionEvent e) {
            final FileChooserDescriptor descriptor = new ExtensionFileChooserDescriptor(
                    (String) getValue(Action.NAME),
                    (String) getValue(Action.SHORT_DESCRIPTION),
                    "jar");
            final VirtualFile chosen = FileChooser.chooseFile(descriptor, project, project.getBaseDir());
            if (chosen != null) {
View Full Code Here

            }

            final DefaultListModel listModel = (DefaultListModel) pathList.getModel();
            final String selectedFile = (String) listModel.get(selected);

            final FileChooserDescriptor descriptor = new ExtensionFileChooserDescriptor(
                    (String) getValue(Action.NAME),
                    (String) getValue(Action.SHORT_DESCRIPTION),
                    "jar");
            final VirtualFile toSelect = LocalFileSystem.getInstance().findFileByPath(selectedFile);
            final VirtualFile chosen = FileChooser.chooseFile(descriptor, project, toSelect);
View Full Code Here

TOP

Related Classes of org.infernus.idea.checkstyle.util.ExtensionFileChooserDescriptor

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.