Search in sources :

Example 1 with AirPackagingOptions

use of com.intellij.lang.javascript.flex.projectStructure.model.AirPackagingOptions in project intellij-plugins by JetBrains.

the class AirPackageDialog method checkPasswords.

private boolean checkPasswords(final Collection<Pair<Module, FlexBuildConfiguration>> selectedBCs) {
    final Collection<AirPackagingOptions> allPackagingOptions = new ArrayList<>();
    for (Pair<Module, FlexBuildConfiguration> moduleAndBC : selectedBCs) {
        final FlexBuildConfiguration bc = moduleAndBC.second;
        if (bc.getTargetPlatform() == TargetPlatform.Desktop) {
            if (myDesktopTypeCombo.getSelectedItem() != DesktopPackageType.Airi) {
                allPackagingOptions.add(bc.getAirDesktopPackagingOptions());
            }
        } else {
            if (bc.getAndroidPackagingOptions().isEnabled()) {
                allPackagingOptions.add(bc.getAndroidPackagingOptions());
            }
            if (bc.getIosPackagingOptions().isEnabled()) {
                allPackagingOptions.add(bc.getIosPackagingOptions());
            }
        }
    }
    myPasswords = AirPackageAction.getPasswords(myProject, allPackagingOptions);
    return myPasswords != null;
}
Also used : AirPackagingOptions(com.intellij.lang.javascript.flex.projectStructure.model.AirPackagingOptions) ArrayList(java.util.ArrayList) FlexBuildConfiguration(com.intellij.lang.javascript.flex.projectStructure.model.FlexBuildConfiguration) Module(com.intellij.openapi.module.Module)

Aggregations

AirPackagingOptions (com.intellij.lang.javascript.flex.projectStructure.model.AirPackagingOptions)1 FlexBuildConfiguration (com.intellij.lang.javascript.flex.projectStructure.model.FlexBuildConfiguration)1 Module (com.intellij.openapi.module.Module)1 ArrayList (java.util.ArrayList)1