Exemple #1
0
  /**
   * Publishes file system item write error.
   *
   * @param projectDiagram is the diagram that is supposed to be written
   * @param projectItemFile is the file path to the not existing file of diagram
   */
  private void publicAddDiagramError(
      final ProjectDiagram projectDiagram, final File projectItemFile) {
    syncDialog.appendErrorInfo(DIAGRAM_LABEL + " " + projectDiagram.getDisplayName(), false);
    syncDialog.appendErrorInfo(
        NOTATION_LABEL + " " + projectDiagram.getNotationIdentifier(), false);
    syncDialog.appendErrorInfo(DIAGRAM_WRITE_ERROR_LABEL, false);
    syncDialog.appendErrorInfo(" >> " + projectItemFile.getAbsolutePath(), true);

    LOG.error(
        "Sync PN -> FS: Diagram " + projectItemFile.getAbsolutePath() + " has NOT been saved.");
  }
Exemple #2
0
 /**
  * Publishes file system item overwrite error.
  *
  * @param projectDiagram is the diagram that is supposed to be overwritten
  * @param projectItemFile is the file path to the existing file of diagram
  */
 private void publicOverwriteError(
     final ProjectDiagram projectDiagram, final File projectItemFile) {
   syncDialog.appendErrorInfo(DIAGRAM_LABEL + " " + projectDiagram.getDisplayName(), false);
   syncDialog.appendErrorInfo(
       NOTATION_LABEL + " " + projectDiagram.getNotationIdentifier(), false);
   syncDialog.appendErrorInfo(DIAGRAM_OVERWRITE_ERROR_LABEL, false);
   syncDialog.appendErrorInfo(" >> " + projectItemFile.getAbsolutePath(), true);
   LOG.error(
       "Sync PN -> FS: Diagram "
           + projectItemFile.getAbsolutePath()
           + " was NOT possible to overwrite.");
 }