Package org.clarent.ivyidea.intellij.facet.ui.components

Examples of org.clarent.ivyidea.intellij.facet.ui.components.ConfigurationSelectionTableModel


        try {
            allConfigurations = loadConfigurations();
            chkOnlyResolveSpecificConfigs.setEnabled(allConfigurations != null);
            if (allConfigurations != null) {
                LOGGER.info("Detected configs in file " + txtIvyFile.getText() + ": " + allConfigurations.toString());
                tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel(allConfigurations, getNames(selectedConfigurations)));
                lblIvyFileMessage.setText("");
                foundConfigsBefore = true;
            } else {
                File ivyFile = new File(txtIvyFile.getText());
                if (ivyFile.isDirectory() || !ivyFile.exists()) {
                    lblIvyFileMessage.setText("Please enter the name of an existing ivy file.");
                } else {
                    lblIvyFileMessage.setText("Warning: No configurations could be found in the given ivy file");
                }
                if (foundConfigsBefore) {
                    selectedConfigurations = tblConfigurationSelection.getSelectedConfigurations();
                }
                tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel());
                foundConfigsBefore = false;
            }
        } catch (ParseException e1) {
            // TODO: provide link to error display dialog with full exception
            lblIvyFileMessage.setText("Error parsing the file. If you use properties or specific ivy settings, configure those first.");
View Full Code Here


            } catch ( IvySettingsFileReadException e ) {
                allConfigurations = null;
            }
            if (StringUtils.isNotBlank(configuration.getIvyFile())) {
                if (allConfigurations != null) {
                    tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel(allConfigurations, configuration.getConfigsToResolve()));
                } else {
                    tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel());
                }
                selectedConfigurations = tblConfigurationSelection.getSelectedConfigurations();
                updateConfigurationsTable();
            } else {
                tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel());
                selectedConfigurations = new HashSet<Configuration>();
                tblConfigurationSelection.setEditable(false);
            }
            updateUI();
        }
View Full Code Here

TOP

Related Classes of org.clarent.ivyidea.intellij.facet.ui.components.ConfigurationSelectionTableModel

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.