Search in sources :

Example 1 with OldFrameworkSupportProviderWrapper

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

the class FrameworkSupportModelBase method onFrameworkSelectionChanged.

public void onFrameworkSelectionChanged(FrameworkSupportNode node) {
    final FrameworkSupportInModuleProvider provider = node.getUserObject();
    //todo[nik]
    boolean checked = node.isChecked();
    if (provider instanceof OldFrameworkSupportProviderWrapper) {
        final FrameworkSupportProvider oldProvider = ((OldFrameworkSupportProviderWrapper) provider).getProvider();
        selectFramework(oldProvider, checked);
    }
    for (FrameworkSupportInModuleProvider.FrameworkDependency dependency : provider.getDependenciesFrameworkIds()) {
        if (!dependency.isOptional()) {
            String id = dependency.getFrameworkId();
            setFrameworkComponentEnabled(id, true);
        }
    }
}
Also used : FrameworkSupportProvider(com.intellij.ide.util.frameworkSupport.FrameworkSupportProvider) OldFrameworkSupportProviderWrapper(com.intellij.ide.util.newProjectWizard.OldFrameworkSupportProviderWrapper) FrameworkSupportInModuleProvider(com.intellij.framework.addSupport.FrameworkSupportInModuleProvider)

Aggregations

FrameworkSupportInModuleProvider (com.intellij.framework.addSupport.FrameworkSupportInModuleProvider)1 FrameworkSupportProvider (com.intellij.ide.util.frameworkSupport.FrameworkSupportProvider)1 OldFrameworkSupportProviderWrapper (com.intellij.ide.util.newProjectWizard.OldFrameworkSupportProviderWrapper)1