use of com.intellij.lang.javascript.flex.build.InfoFromConfigFile in project intellij-plugins by JetBrains.
the class FlexBuildConfigurationImpl method getActualOutputFilePath.
@Override
public String getActualOutputFilePath() {
final InfoFromConfigFile info = FlexCompilerConfigFileUtil.getInfoFromConfigFile(myCompilerOptions.getAdditionalConfigFilePath());
final String outputFolderPath = BCUtils.isFlexUnitBC(this) ? myOutputFolder : StringUtil.notNullize(info.getOutputFolderPath(), myOutputFolder);
final String outputFileName = myTempBCForCompilation ? myOutputFileName : StringUtil.notNullize(info.getOutputFileName(), myOutputFileName);
return outputFolderPath + (outputFolderPath.isEmpty() ? "" : "/") + outputFileName;
}
use of com.intellij.lang.javascript.flex.build.InfoFromConfigFile in project intellij-plugins by JetBrains.
the class FlashRunConfigurationForm method updateControls.
private void updateControls() {
final FlexBuildConfiguration bc = myBCCombo.getBC();
final Module module = myBCCombo.getModule();
final boolean overrideMainClass = myOverrideMainClassCheckBox.isSelected();
myMainClassComponent.setEnabled(overrideMainClass);
myOutputFileNameLabel.setEnabled(overrideMainClass);
myOutputFileNameTextField.setEnabled(overrideMainClass);
if (!overrideMainClass && bc != null && module != null) {
final InfoFromConfigFile info = FlexCompilerConfigFileUtil.getInfoFromConfigFile(bc.getCompilerOptions().getAdditionalConfigFilePath());
myMainClassComponent.setText(StringUtil.notNullize(info.getMainClass(module), bc.getMainClass()));
myOutputFileNameTextField.setText(StringUtil.notNullize(info.getOutputFileName(), bc.getOutputFileName()));
}
final boolean web = bc != null && bc.getTargetPlatform() == TargetPlatform.Web;
final boolean desktop = bc != null && bc.getTargetPlatform() == TargetPlatform.Desktop;
final boolean mobile = bc != null && bc.getTargetPlatform() == TargetPlatform.Mobile;
myLaunchPanel.setVisible(web);
myWebOptionsPanel.setVisible(web);
myDesktopOptionsPanel.setVisible(desktop);
myMobileRunPanel.setVisible(mobile);
myMobileOptionsPanel.setVisible(mobile);
if (web) {
updateBCOutputLabel(bc);
myUrlOrFileTextWithBrowse.setEnabled(myUrlOrFileRadioButton.isSelected());
myLauncherParametersTextWithBrowse.getTextField().setText(myLauncherParameters.getPresentableText());
myRunTrustedCheckBox.setEnabled(!myUrlOrFileRadioButton.isSelected());
}
if (mobile) {
final boolean runOnEmulator = myOnEmulatorRadioButton.isSelected();
final boolean app = bc.getOutputType() == OutputType.Application;
myEmulatorCombo.setEnabled(runOnEmulator);
UIUtil.setEnabled(myEmulatorScreenSizePanel, runOnEmulator, true);
myFastPackagingCheckBox.setEnabled(myOnIOSDeviceRadioButton.isSelected());
myEmulatorAdlOptionsLabel.setEnabled(runOnEmulator);
myEmulatorAdlOptionsEditor.setEnabled(runOnEmulator);
myAppDescriptorForEmulatorLabel.setEnabled(app && runOnEmulator);
myAppDescriptorForEmulatorCombo.setEnabled(app && runOnEmulator);
if (runOnEmulator) {
updateEmulatorRelatedControls();
}
myIOSSimulatorSdkTextWithBrowse.setEnabled(myOnIOSSimulatorRadioButton.isSelected());
if (myIOSSimulatorSdkTextWithBrowse.isEnabled() && myIOSSimulatorSdkTextWithBrowse.getText().isEmpty() && SystemInfo.isMac) {
final String latestSelected = PropertiesComponent.getInstance().getValue(LATEST_SELECTED_IOS_SIMULATOR_SDK_PATH_KEY);
myIOSSimulatorSdkTextWithBrowse.setText(FileUtil.toSystemDependentName(StringUtil.notNullize(latestSelected, guessIosSimulatorSdkPath())));
}
updateDebugTransportRelatedControls();
}
}
use of com.intellij.lang.javascript.flex.build.InfoFromConfigFile in project intellij-plugins by JetBrains.
the class FlexBCConfigurable method checkIfConfigFileOverridesOptions.
private void checkIfConfigFileOverridesOptions(final String configFilePath) {
final InfoFromConfigFile info = FlexCompilerConfigFileUtil.getInfoFromConfigFile(configFilePath);
overriddenValuesChanged(info.getMainClass(myModule), info.getOutputFileName(), info.getOutputFolderPath());
myDependenciesConfigurable.overriddenTargetPlayerChanged(info.getTargetPlayer());
}
Aggregations