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

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


    importResources(resourcePool);
  }
 
  protected void importResources(ResourcePool resourcePool) {
    state.setResourcePool(resourcePool);
    MpxResourceConverter converter=new MpxResourceConverter();
    for (net.sf.mpxj.Resource mpxResource : mpxProjectFile.getAllResources()){
      if (mpxResource.getNull() || mpxResource.getID()==null)
        continue;
      Resource resource;
      if (mpxResource.getID()==0)
        resource=resourcePool.getUnassignedResource();
      else {
        resource=new Resource();
        resourcePool.addResource(resource);
      }
      converter.from(mpxResource, resource, state);
      state.mapResource(resource.getId(), resource);
      //TODO insert blank lines ignored below
    }
  }
View Full Code Here

TOP

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

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.