public boolean performOk() {
// store the value in the owner text field
try {
ProjectAdapter projectAdapter = getProjectAdapter();
if (projectAdapter != null) {
BuildProperties buildProperties = getBuildProperties();
buildProperties.setCustomInfoPListContent(_customInfoPListText.getText());
buildProperties.setServletDeployment(_servletDeploymentCheck.getSelection());
buildProperties.setWebXML(_generateWebXMLCheck.getSelection());
buildProperties.setWebXML_CustomContent(_customWebXMLText.getText());
ProjectFrameworkAdapter projectFrameworkAdapter = getProjectFrameworkAdapter();
if (buildProperties.isServletDeployment()) {
projectFrameworkAdapter.addFrameworkNamed("JavaWOJSPServlet");
} else {
projectFrameworkAdapter.removeFrameworkNamed("JavaWOJSPServlet");
}
for (Root root : _embedButtons.keySet()) {
Button embedButton = _embedButtons.get(root);
boolean embed = buildProperties.isServletDeployment() || (embedButton.isEnabled() && embedButton.getSelection());
buildProperties.setEmbed(root, embed);
}
buildProperties.setJavaClient(_javaClientButton.getSelection());
buildProperties.setJavaWebStart(_javaClientButton.getSelection() && _javaWebStartButton.getSelection());
buildProperties.save();
}
} catch (Exception up) {
UIPlugin.getDefault().log(up);
return false;
}