Exemple #1
0
 private static void writeExternal(
     @NotNull Element element, @NotNull ShelvedChangeList shelvedChangeList)
     throws WriteExternalException {
   DefaultJDOMExternalizer.writeExternal(shelvedChangeList, element);
   element.setAttribute(NAME_ATTRIBUTE, shelvedChangeList.getName());
   element.setAttribute(ATTRIBUTE_DATE, Long.toString(shelvedChangeList.DATE.getTime()));
   element.setAttribute(
       ATTRIBUTE_RECYCLED_CHANGELIST, Boolean.toString(shelvedChangeList.isRecycled()));
   for (ShelvedBinaryFile file : shelvedChangeList.getBinaryFiles()) {
     Element child = new Element(ELEMENT_BINARY);
     file.writeExternal(child);
     element.addContent(child);
   }
 }