Package com.projectlibre.core.pm.exchange.converters.mpx

Examples of com.projectlibre.core.pm.exchange.converters.mpx.MpxCalendarConverter


 
  protected void importCalendars(Project project) {
    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);
      try {
        project.getCalendarManager().addBaseCalendar(calendar);
        state.mapBaseCalendar(calendar,mpxBaseCalendar);
      } catch (DuplicateCalendarException e) {
        // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of com.projectlibre.core.pm.exchange.converters.mpx.MpxCalendarConverter

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.