// Recurring simple Trigger
int interval = jsJobTrigger.getRepeatInterval();
scheduleEditor.setRepeatInSecs( interval );
if ( scheduleType == ScheduleType.DAILY ) {
DailyRecurrenceEditor dailyRecurrenceEditor = scheduleEditor.getRecurrenceEditor().getDailyEditor();
dailyRecurrenceEditor.setEveryNDays();
}
}
} else if ( jsJobTrigger.getType().equals( "complexJobTrigger" ) ) { //$NON-NLS-1$
if ( scheduleType == ScheduleType.DAILY ) {
// Daily
DailyRecurrenceEditor dailyRecurrenceEditor = scheduleEditor.getRecurrenceEditor().getDailyEditor();
if ( jsJobTrigger.isWorkDaysInWeek() ) {
dailyRecurrenceEditor.setEveryWeekday();
} else {
dailyRecurrenceEditor.setEveryNDays();
}
} else if ( scheduleType == ScheduleType.WEEKLY ) {
int[] daysOfWeek = jsJobTrigger.getDayOfWeekRecurrences();
WeeklyRecurrenceEditor weeklyRecurrenceEditor = scheduleEditor.getRecurrenceEditor().getWeeklyEditor();
String strDays = ""; //$NON-NLS-1$