Search in sources :

Example 1 with TargetPlatform

use of com.intellij.flex.model.bc.TargetPlatform in project intellij-plugins by JetBrains.

the class FlashBuilderImportTest method testWebASLib.

public void testWebASLib() throws Exception {
    final String flexLibPropertiesFileContent = "<flexLibProperties useMultiPlatformConfig='false'/>";
    final String actionScriptPropertiesFileContent = "<actionScriptProperties mainApplicationPath='does not matter'>\n" + "  <compiler outputFolderPath='bin' useFlashSDK='true' useApolloConfig='false'/>\n" + "</actionScriptProperties>";
    final TargetPlatform expectedTargetPlatform = TargetPlatform.Web;
    commonASLibTest(flexLibPropertiesFileContent, actionScriptPropertiesFileContent, expectedTargetPlatform);
}
Also used : TargetPlatform(com.intellij.flex.model.bc.TargetPlatform)

Example 2 with TargetPlatform

use of com.intellij.flex.model.bc.TargetPlatform in project intellij-plugins by JetBrains.

the class FlashBuilderImportTest method testMobileASLib.

// not sure that mobile AS libs are supported by FB, but if they are - should be like this
public void testMobileASLib() throws Exception {
    final String flexLibPropertiesFileContent = "<flexLibProperties useMultiPlatformConfig='true'/>";
    final String actionScriptPropertiesFileContent = "<actionScriptProperties mainApplicationPath='does not matter'>\n" + "  <compiler outputFolderPath='bin' useFlashSDK='true' useApolloConfig='true'/>\n" + "</actionScriptProperties>";
    final TargetPlatform expectedTargetPlatform = TargetPlatform.Mobile;
    commonASLibTest(flexLibPropertiesFileContent, actionScriptPropertiesFileContent, expectedTargetPlatform);
}
Also used : TargetPlatform(com.intellij.flex.model.bc.TargetPlatform)

Example 3 with TargetPlatform

use of com.intellij.flex.model.bc.TargetPlatform in project intellij-plugins by JetBrains.

the class AddBuildConfigurationDialog method getNature.

public BuildConfigurationNature getNature() {
    TargetPlatform targetPlatform = (TargetPlatform) myTargetPlatformCombo.getSelectedItem();
    boolean isPureAs = myPureActionScriptCheckBox.isSelected();
    OutputType outputType = (OutputType) myOutputTypeCombo.getSelectedItem();
    return new BuildConfigurationNature(targetPlatform, isPureAs, outputType);
}
Also used : BuildConfigurationNature(com.intellij.flex.model.bc.BuildConfigurationNature) TargetPlatform(com.intellij.flex.model.bc.TargetPlatform) OutputType(com.intellij.flex.model.bc.OutputType)

Example 4 with TargetPlatform

use of com.intellij.flex.model.bc.TargetPlatform in project intellij-plugins by JetBrains.

the class FlashBuilderImportTest method testDesktopASLib.

public void testDesktopASLib() throws Exception {
    final String flexLibPropertiesFileContent = "<flexLibProperties useMultiPlatformConfig='false'/>";
    final String actionScriptPropertiesFileContent = "<actionScriptProperties mainApplicationPath='does not matter'>\n" + "  <compiler outputFolderPath='bin' useFlashSDK='true' useApolloConfig='true'/>\n" + "</actionScriptProperties>";
    final TargetPlatform expectedTargetPlatform = TargetPlatform.Desktop;
    commonASLibTest(flexLibPropertiesFileContent, actionScriptPropertiesFileContent, expectedTargetPlatform);
}
Also used : TargetPlatform(com.intellij.flex.model.bc.TargetPlatform)

Example 5 with TargetPlatform

use of com.intellij.flex.model.bc.TargetPlatform in project intellij-plugins by JetBrains.

the class FlexBCConfigurable method updateControls.

private void updateControls() {
    final TargetPlatform targetPlatform = myConfiguration.getTargetPlatform();
    final OutputType outputType = myConfiguration.getOutputType();
    myOptimizeForPanel.setVisible(false);
    final boolean showMainClass = outputType == OutputType.Application || outputType == OutputType.RuntimeLoadedModule;
    myMainClassLabel.setVisible(showMainClass);
    myMainClassComponent.setVisible(showMainClass);
    final boolean wrapperApplicable = targetPlatform == TargetPlatform.Web && outputType == OutputType.Application;
    myUseHTMLWrapperCheckBox.setVisible(wrapperApplicable);
    myWrapperFolderLabel.setVisible(wrapperApplicable);
    myWrapperTemplateTextWithBrowse.setVisible(wrapperApplicable);
    myCreateHtmlWrapperTemplateButton.setVisible(wrapperApplicable);
    if (wrapperApplicable) {
        myWrapperFolderLabel.setEnabled(myUseHTMLWrapperCheckBox.isSelected());
        myWrapperTemplateTextWithBrowse.setEnabled(myUseHTMLWrapperCheckBox.isSelected());
        myCreateHtmlWrapperTemplateButton.setEnabled(myUseHTMLWrapperCheckBox.isSelected());
    }
    final boolean canHaveRLMsAndRuntimeStylesheets = FlexCommonUtils.canHaveRLMsAndRuntimeStylesheets(outputType, targetPlatform);
    myRLMLabel.setVisible(canHaveRLMsAndRuntimeStylesheets);
    myRLMTextWithBrowse.setVisible(canHaveRLMsAndRuntimeStylesheets);
    updateRLMsText();
    myCssFilesLabel.setVisible(canHaveRLMsAndRuntimeStylesheets);
    myCssFilesTextWithBrowse.setVisible(canHaveRLMsAndRuntimeStylesheets);
    updateCssFilesText();
}
Also used : TargetPlatform(com.intellij.flex.model.bc.TargetPlatform) OutputType(com.intellij.flex.model.bc.OutputType)

Aggregations

TargetPlatform (com.intellij.flex.model.bc.TargetPlatform)5 OutputType (com.intellij.flex.model.bc.OutputType)2 BuildConfigurationNature (com.intellij.flex.model.bc.BuildConfigurationNature)1