initializeFromJob(reportJob, guiContext);
createParametersPanelContent();
final FormValidator formValidator = getFormValidator();
formValidator.setEnabled(false);
final ModifiableConfiguration repConf = reportJob.getReportConfiguration();
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);
LibSwingUtil.centerDialogInParent(this);
setVisible(true);
if (isConfirmed() == false)
{
this.guiContext = defaultContext;
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);