Examples of IvyIdeaProjectSettings


Examples of org.clarent.ivyidea.config.model.IvyIdeaProjectSettings

    private IvyIdeaProjectSettingsPanel settingsPanel;

    public IvyIdeaProjectSettingsComponent(Project project) {
        this.project = project;
        this.internalState = new IvyIdeaProjectSettings();
    }
View Full Code Here

Examples of org.clarent.ivyidea.config.model.IvyIdeaProjectSettings

        orderedFileList.setFileNames(fileNames);
    }

    public void apply() throws ConfigurationException {
        if (internalState == null) {
            internalState = new IvyIdeaProjectSettings();
        }
        internalState.setIvySettingsFile(txtIvySettingsFile.getText());
        internalState.setValidateIvyFiles(chkValidateIvyFiles.isSelected());
        internalState.setResolveTransitively(chkResolveTransitively.isSelected());
        internalState.setResolveCacheOnly(chkUseCacheOnly.isSelected());
View Full Code Here

Examples of org.clarent.ivyidea.config.model.IvyIdeaProjectSettings

        internalState.getArtifactTypeSettings().setTypesForCategory(Sources, txtSourcesArtifactTypes.getText());
        internalState.getArtifactTypeSettings().setTypesForCategory(Javadoc, txtJavadocArtifactTypes.getText());
    }

    public void reset() {
        IvyIdeaProjectSettings config = internalState;
        if (config == null) {
            config = new IvyIdeaProjectSettings();
        }
        txtIvySettingsFile.setText(config.getIvySettingsFile());
        chkValidateIvyFiles.setSelected(config.isValidateIvyFiles());
        chkResolveTransitively.setSelected(config.isResolveTransitively());
        chkUseCacheOnly.setSelected(config.isResolveCacheOnly());
        chkBackground.setSelected(config.isResolveInBackground());
        autoAttachSources.setSelected(config.isAlwaysAttachSources());
        autoAttachJavadocs.setSelected(config.isAlwaysAttachJavadocs());
        useYourOwnIvySettingsRadioButton.setSelected(config.isUseCustomIvySettings());
        setPropertiesFiles(config.getPropertiesSettings().getPropertyFiles());
        includeModuleNameCheckBox.setSelected(config.isLibraryNameIncludesModule());
        includeConfigurationNameCheckBox.setSelected(config.isLibraryNameIncludesConfiguration());
        ivyLogLevelComboBox.setSelectedItem(IvyLogLevel.fromName(config.getIvyLogLevelThreshold()));
        txtSourcesArtifactTypes.setText(config.getArtifactTypeSettings().getTypesStringForCategory(Sources));
        txtClassesArtifactTypes.setText(config.getArtifactTypeSettings().getTypesStringForCategory(Classes));
        txtJavadocArtifactTypes.setText(config.getArtifactTypeSettings().getTypesStringForCategory(Javadoc));
    }
View Full Code Here

Examples of org.clarent.ivyidea.config.model.IvyIdeaProjectSettings

    }

    @Nullable
    public static String getProjectIvySettingsFile(Project project) throws IvySettingsNotFoundException {
        IvyIdeaProjectSettingsComponent component = project.getComponent(IvyIdeaProjectSettingsComponent.class);
        final IvyIdeaProjectSettings state = component.getState();
        if (state.isUseCustomIvySettings()) {
            String settingsFile = StringUtils.trim(state.getIvySettingsFile());
            if (StringUtils.isNotBlank(settingsFile)) {
                if (!settingsFile.startsWith("http://")
                        && !settingsFile.startsWith("https://")
                        && !settingsFile.startsWith("file://")) {
                    File result = new File(settingsFile);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.