use of org.pentaho.platform.plugin.action.jfreereport.components.JFreeReportValidateParametersComponent in project pentaho-platform by pentaho.
the class JFreeReportComponent method validateAction.
/**
* We cannot validate the parameters of all components, as the required parameters might not have been created.
*
* @return
*/
@Override
public boolean validateAction() {
boolean result = true;
if (!(getActionDefinition() instanceof JFreeReportAction)) {
error(Messages.getInstance().getErrorString("ComponentBase.ERROR_0001_UNKNOWN_ACTION_TYPE", // $NON-NLS-1$
getActionDefinition().getElement().asXML()));
result = false;
} else {
validateParametersComponent = new JFreeReportValidateParametersComponent();
if (initAndValidate(validateParametersComponent) == false) {
// $NON-NLS-1$
error(Messages.getInstance().getString("JFreeReportComponent.ERROR_0025_COULD_NOT_VALIDATE"));
result = false;
}
}
return result;
}
Aggregations