Search in sources :

Example 1 with OutputType

use of com.intellij.flex.model.bc.OutputType 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)

Example 2 with OutputType

use of com.intellij.flex.model.bc.OutputType 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)

Aggregations

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