public boolean finish()

in org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/cpcontainer/IvydeContainerPage.java [187:247]


    public boolean finish() {
        List<String> confs = confTableViewer.getSelectedConfigurations();
        if (confs.isEmpty()) {
            confs = Collections.singletonList("*");
        }
        conf.setConfs(confs);

        if (settingsSetupTab.isProjectSpecific()) {
            conf.setSettingsProjectSpecific(true);
            conf.setIvySettingsSetup(settingsSetupTab.getSettingsEditor().getIvySettingsSetup());
        } else {
            conf.setSettingsProjectSpecific(false);
        }

        if (classpathSetupTab.isProjectSpecific()) {
            conf.setClassthProjectSpecific(true);
            conf.setClasspathSetup(classpathSetupTab.getClasspathSetupEditor().getClasspathSetup());
        } else {
            conf.setClassthProjectSpecific(false);
        }

        if (mappingSetupTab.isProjectSpecific()) {
            conf.setMappingProjectSpecific(true);
            conf.setMappingSetup(mappingSetupTab.getMappingSetupEditor().getMappingSetup());
        } else {
            conf.setMappingProjectSpecific(false);
        }

        if (advancedSetupTab.isProjectSpecific()) {
            conf.setAdvancedProjectSpecific(true);
            conf.setAdvancedSetup(advancedSetupTab.getAdvancedSetupEditor().getAdvancedSetup());
        } else {
            conf.setAdvancedProjectSpecific(false);
        }

        IPath path = IvyClasspathContainerConfAdapter.getPath(conf);
        IClasspathAttribute[] atts = conf.getAttributes();

        entry = JavaCore.newContainerEntry(path, null, atts, exported);

        if (project != null) {
            try {
                IvyClasspathContainerImpl ivycp = new IvyClasspathContainerImpl(project, path,
                        new IClasspathEntry[0], atts);
                JavaCore.setClasspathContainer(path, new IJavaProject[] {project},
                    new IClasspathContainer[] {ivycp}, null);
                ivycp.launchResolve(false, null);
            } catch (JavaModelException e) {
                IvyPlugin.log(e);
            }
        }

        if (conf.getJavaProject() != null && oldIvyFile != null
                && !oldIvyFile.equals(conf.getIvyXmlPath())) {
            // changing the ivy.xml, remove old marker on the old file, if any
            IvyMarkerManager ivyMarkerManager = IvyPlugin.getDefault().getIvyMarkerManager();
            ivyMarkerManager.removeMarkers(conf.getJavaProject().getProject(), oldIvyFile);
        }

        return true;
    }