Package com.projity.server.data.mspdi

Examples of com.projity.server.data.mspdi.ModifiedMSPDIWriter


      return serializeProject(project,false);
    }
    public ModifiedMSPDIWriter serializeProject(Project project,boolean globalIdsOnly) throws Exception{
        if (globalIdsOnly)
          makeGLobal(project);
        ModifiedMSPDIWriter projectData=new ModifiedMSPDIWriter();
        ProjectFile projectFile = new ProjectFile();
        projectData.setProjectFile(projectFile);
       
        projectData.setProjityProject(project);
//this doesn't appear in 2007 version of mpxj        projectData.setMicrosoftProjectCompatibleOutput(true);
        projectFile.setAutoTaskUniqueID(true);
        projectFile.setAutoResourceUniqueID(true);
        //project
        ProjectHeader projectHeader=projectFile.getProjectHeader();
View Full Code Here


     }
   
  public boolean saveProject(Project project,String fileName) {
    try {
      //MSPDISerializer serializer=new MSPDISerializer();
      ModifiedMSPDIWriter data=/*serializer.*/serializeProject(project);
      if (job!=null) job.setProgress(0.9f);
      data.write(data.getProjectFile(),new FileOutputStream(fileName));
      if (job!=null) job.setProgress(1.0f);
    } catch (Exception e) {
      e.printStackTrace();
      return false;
    }
View Full Code Here

TOP

Related Classes of com.projity.server.data.mspdi.ModifiedMSPDIWriter

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.