for ( int element2 : daysOfWeek ) {
strDays += Integer.toString( element2 ) + ","; //$NON-NLS-1$
}
weeklyRecurrenceEditor.setCheckedDaysAsString( strDays, 1 );
} else if ( scheduleType == ScheduleType.MONTHLY ) {
MonthlyRecurrenceEditor monthlyRecurrenceEditor = scheduleEditor.getRecurrenceEditor().getMonthlyEditor();
if ( jsJobTrigger.isQualifiedDayOfWeekRecurrence() ) {
// Run Every on ___day of Nth week every month
monthlyRecurrenceEditor.setDayOfWeek( TimeUtil.DayOfWeek.valueOf( jsJobTrigger.getQualifiedDayOfWeek() ) );
monthlyRecurrenceEditor
.setWeekOfMonth( TimeUtil.WeekOfMonth.valueOf( jsJobTrigger.getDayOfWeekQualifier() ) );
monthlyRecurrenceEditor.setNthDayNameOfMonth();
} else {
// Run on Nth day of the month
monthlyRecurrenceEditor.setDayOfMonth( Integer.toString( jsJobTrigger.getDayOfMonthRecurrences()[0] ) );
}
} else if ( scheduleType == ScheduleType.YEARLY ) {
YearlyRecurrenceEditor yearlyRecurrenceEditor = scheduleEditor.getRecurrenceEditor().getYearlyEditor();
if ( jsJobTrigger.isQualifiedDayOfWeekRecurrence() ) {
// Run Every on ___day of Nth week of the month M yearly