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