Package jSimMacs.fileIO.writer.XML

Examples of jSimMacs.fileIO.writer.XML.IXMLWriter


   * @param projectLocation
   */
  public void saveRemoteProject(ProjectLocation projectLocation) {
    if (projectLocation == ProjectLocation.SSH) {
      // RemoteProject remoteProject = (RemoteProject) project;
      IXMLWriter rProjectWriter = new RProjectSAXWriter(remoteProjects);
      try {
        rProjectWriter.writeXML(JSimConstants.REMOTEPROJECTFILE);
      } catch (Exception e) {
        JOptionPane.showMessageDialog(frame, e.getMessage(),
            "Remote error", JOptionPane.ERROR_MESSAGE);
        e.printStackTrace();
      }
View Full Code Here


    ProjectType type;
    try {
      type = findType(JSimConstants.EMPTYPROJECTSTRING);

      project.setType(type);
      IXMLWriter projectWriter = new ProjectSAXWriter(project);

      projectWriter.writeXML(projectFile.getPath());
    } catch (Exception e) {
      JOptionPane.showMessageDialog(frame, e.getMessage(),
          "Create error", JOptionPane.ERROR_MESSAGE);
      e.printStackTrace();
    }
View Full Code Here

      projectFile = handler
          .createTempPath(rmProject.getPath() + rmProject.getName()
              + "/" + JSimConstants.PROJECTCONFFILE);
      projectFile += JSimConstants.PROJECTCONFFILE;
    }
    IXMLWriter projectWriter = new ProjectSAXWriter(project);
    try {
      projectWriter.writeXML(projectFile);
    } catch (Exception e) {
      JOptionPane.showMessageDialog(frame, e.getMessage(), "Save error",
          JOptionPane.ERROR_MESSAGE);
      e.printStackTrace();
    }
View Full Code Here

      projectFile = handler
          .createTempPath(rmProject.getPath() + rmProject.getName()
              + "/" + JSimConstants.PROJECTCONFFILE);
      projectFile += JSimConstants.PROJECTCONFFILE;
    }
    IXMLWriter projectWriter = new ProjectSettingSAXWriter(project);
    try {
      projectWriter.writeXML(projectFile);
    } catch (Exception e) {
      JOptionPane.showMessageDialog(frame, e.getMessage(), "Save error",
          JOptionPane.ERROR_MESSAGE);
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of jSimMacs.fileIO.writer.XML.IXMLWriter

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.