clear();
initializeFromJob(reportJob, guiContext);
final FormValidator formValidator = getFormValidator();
formValidator.setEnabled(false);
final ModifiableConfiguration repConf = reportJob.getConfiguration();
final boolean inputStorageEnabled = isInputStorageEnabled(repConf);
final Configuration loadedConfiguration;
if (inputStorageEnabled)
{
loadedConfiguration = loadFromConfigStore(reportJob, repConf);
}
else
{
loadedConfiguration = repConf;
}
setDialogContents(loadedConfiguration);
formValidator.setEnabled(true);
formValidator.handleValidate();
setModal(true);
setVisible(true);
if (isConfirmed() == false)
{
return false;
}
formValidator.setEnabled(false);
final Configuration fullDialogContents = grabDialogContents(true);
final Enumeration configProperties =
fullDialogContents.getConfigProperties();
while (configProperties.hasMoreElements())
{
final String key = (String) configProperties.nextElement();
repConf.setConfigProperty(key, fullDialogContents.getConfigProperty(key));
}
if (inputStorageEnabled)
{
saveToConfigStore(reportJob, repConf);