public ProjectCalendar addDefaultBaseCalendar ( ) { ProjectCalendar calendar = add ( ) ; calendar . setName ( ProjectCalendar . DEFAULT_BASE_CALENDAR_NAME ) ; calendar . setWorkingDay ( Day . SUNDAY , false ) ; calendar . setWorkingDay ( Day . MONDAY , true ) ; calendar . setWorkingDay ( Day . TUESDAY , true ) ; calendar . setWorkingDay ( Day . WEDNESDAY , true ) ; calendar . setWorkingDay ( Day . THURSDAY , true ) ; calendar . setWorkingDay ( Day . FRIDAY , true ) ; calendar . setWorkingDay ( Day . SATURDAY , false ) ; calendar . addDefaultCalendarHours ( ) ; return ( calendar ) ; }
This is a convenience method used to add a calendar called Standard to the project and populate it with a default working week and default working hours .