Package com.projectlibre.pm.calendar

Examples of com.projectlibre.pm.calendar.DefaultWorkCalendar


    state.setCalendarManager(project.getCalendarManager());
    state.setProjectTitle(mpxProjectFile.getProjectHeader().getProjectTitle());
   
    MpxCalendarConverter converter=new MpxCalendarConverter();
    for (ProjectCalendar mpxBaseCalendar : mpxProjectFile.getBaseCalendars()) {
      WorkCalendar calendar=new DefaultWorkCalendar();
      if (ProjectCalendar.DEFAULT_BASE_CALENDAR_NAME.equals(mpxBaseCalendar.getName())){
        state.setMpxStandardBaseCalendar(mpxBaseCalendar);
        project.getCalendarManager().setStandardBaseCalendar(calendar);
      }
      converter.from(mpxBaseCalendar, calendar, state);
View Full Code Here


    //convert calendar
    WorkCalendar calendar;
    if (mpxResource.getResourceCalendar()==null){
      calendar=state.getProjectBaseCalendar();
    }else{
      calendar=new DefaultWorkCalendar();
      calendar.setName(mpxResource.getName());
      MpxCalendarConverter calendarConverter=new MpxCalendarConverter();
      calendarConverter.from(mpxResource.getResourceCalendar(), calendar, state);
    }
    resource.setCalendar(calendar);
View Full Code Here

    //convert calendar
    WorkCalendar calendar;
    if (mpxTask.getCalendar()==null){
      calendar=state.getProjectBaseCalendar();
    }else{
      calendar=new DefaultWorkCalendar();
      calendar.setName(mpxTask.getName());
      MpxCalendarConverter calendarConverter=new MpxCalendarConverter();
      calendarConverter.from(mpxTask.getCalendar(), calendar, state);
    }
    task.setCalendar(calendar);
View Full Code Here

TOP

Related Classes of com.projectlibre.pm.calendar.DefaultWorkCalendar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.