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();
}
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);
}
Aggregations