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

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


      importTasks(project,mpxTask,null);
    }
  }
 
  protected void importTasks(Project project,net.sf.mpxj.Task mpxTask, Task parentTask) {
    MpxTaskConverter converter=new MpxTaskConverter();
    if (mpxTask.getNull() || mpxTask.getID()==null)
      return; //TODO insert blank lines
//    if (mpxTask.getSubProject() != null)
//      return;
    Task task=null;
    if (mpxTask.getOutlineNumber()!=null &&
        mpxTask.getOutlineLevel() == 0){ //root task, not a real task
      if (mpxRootTask==null)
        mpxRootTask=mpxTask;
    } else { // normal task
      task=new Task();
      converter.from(mpxTask, task, state);
      long taskStart=((Date)task.get("start")).getTime();
      if (earliestTaskStart==-1L || taskStart<earliestTaskStart)
        earliestTaskStart=taskStart;

      project.addTask(task,parentTask);     
View Full Code Here

TOP

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

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.