use of com.intellij.lang.javascript.flex.actions.airpackage.AirPackageProjectParameters in project intellij-plugins by JetBrains.
the class AirPackageDialog method saveParameters.
private void saveParameters() {
final AirPackageProjectParameters params = AirPackageProjectParameters.getInstance(myProject);
params.desktopPackageType = (DesktopPackageType) myDesktopTypeCombo.getSelectedItem();
params.androidPackageType = (AndroidPackageType) myAndroidTypeCombo.getSelectedItem();
params.apkCaptiveRuntime = myApkCaptiveRuntimeCheckBox.isSelected();
try {
final String portValue = myApkDebugPortTextField.getText().trim();
final int port = portValue.isEmpty() ? AirPackageUtil.DEBUG_PORT_DEFAULT : Integer.parseInt(portValue);
if (port > 0 && port <= 65535) {
params.apkDebugListenPort = port;
}
} catch (NumberFormatException e) {
/*ignore*/
}
//final String host = myApkDebugHostTextField.getText().trim();
//params.apkDebugConnectHost = host.equals(myOwnIpAddress) ? "" : host;
params.iosPackageType = (IOSPackageType) myIOSTypeCombo.getSelectedItem();
params.iosFastPackaging = myIosFastPackagingCheckBox.isSelected();
final Collection<Pair<Module, FlexBuildConfiguration>> deselectedBCs = myTree.getDeselectedBCs();
final StringBuilder buf = new StringBuilder();
for (Pair<Module, FlexBuildConfiguration> moduleAndBC : deselectedBCs) {
if (buf.length() > 0)
buf.append('\n');
buf.append(moduleAndBC.first.getName()).append('\t').append(moduleAndBC.second.getName());
}
params.deselectedBCs = buf.toString();
}
use of com.intellij.lang.javascript.flex.actions.airpackage.AirPackageProjectParameters in project intellij-plugins by JetBrains.
the class AirPackageDialog method loadParameters.
private void loadParameters() {
final AirPackageProjectParameters params = AirPackageProjectParameters.getInstance(myProject);
myDesktopTypeCombo.setSelectedItem(params.desktopPackageType);
myAndroidTypeCombo.setSelectedItem(params.androidPackageType);
myApkCaptiveRuntimeCheckBox.setSelected(params.apkCaptiveRuntime);
myApkDebugPortTextField.setText(String.valueOf(params.apkDebugListenPort));
//myApkDebugHostTextField.setText(params.apkDebugConnectHost.isEmpty() ? myOwnIpAddress : params.apkDebugConnectHost);
myIOSTypeCombo.setSelectedItem(params.iosPackageType);
myIosFastPackagingCheckBox.setSelected(params.iosFastPackaging);
for (String entry : StringUtil.split(params.deselectedBCs, "\n")) {
final int tabIndex = entry.indexOf("\t");
if (tabIndex > 0) {
myTree.setChecked(entry.substring(0, tabIndex), entry.substring(tabIndex + 1), false);
}
}
}
Aggregations