if ( hasParams ) {
ScheduleParamsDialog dialog =
new ScheduleParamsDialog( filePath, scheduleRequest, isEmailConfValid );
dialog.center();
} else if ( isEmailConfValid ) {
ScheduleEmailDialog scheduleEmailDialog =
new ScheduleEmailDialog( null, filePath, scheduleRequest, null, null );
scheduleEmailDialog.center();
} else {
// just run it
RequestBuilder scheduleFileRequestBuilder =
new RequestBuilder( RequestBuilder.POST, contextURL + "api/scheduler/job" ); //$NON-NLS-1$
scheduleFileRequestBuilder.setHeader( "Content-Type", "application/json" ); //$NON-NLS-1$//$NON-NLS-2$