Search in sources :

Example 1 with FrameworkSupportOptionsComponent

use of com.intellij.ide.util.newProjectWizard.FrameworkSupportOptionsComponent in project intellij-community by JetBrains.

the class FrameworkSupportModelBase method setSelectedVersion.

public void setSelectedVersion(@NotNull String frameworkOrGroupId, @NotNull FrameworkVersion version) {
    FrameworkVersion oldVersion = mySelectedVersions.put(frameworkOrGroupId, version);
    if (!Comparing.equal(oldVersion, version)) {
        for (Map.Entry<String, FrameworkSupportNode> entry : mySettingsMap.entrySet()) {
            if (hasParentWithId(entry.getValue(), frameworkOrGroupId)) {
                if (!entry.getValue().getId().equals(frameworkOrGroupId)) {
                    FrameworkSupportOptionsComponent component = myOptionsComponentsMap.get(entry.getKey());
                    if (component != null) {
                        component.updateVersionsComponent();
                    }
                }
                updateFrameworkLibraryComponent(entry.getKey());
            }
        }
    }
    myVersionEventDispatcher.getMulticaster().versionChanged(version);
}
Also used : FrameworkSupportNode(com.intellij.ide.util.newProjectWizard.FrameworkSupportNode) FrameworkVersion(com.intellij.framework.FrameworkVersion) FrameworkSupportOptionsComponent(com.intellij.ide.util.newProjectWizard.FrameworkSupportOptionsComponent) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

FrameworkVersion (com.intellij.framework.FrameworkVersion)1 FrameworkSupportNode (com.intellij.ide.util.newProjectWizard.FrameworkSupportNode)1 FrameworkSupportOptionsComponent (com.intellij.ide.util.newProjectWizard.FrameworkSupportOptionsComponent)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1