*/
public void save() throws IOException {
XMLMemento memento = XMLMemento.createWriteRoot(Messages.IssuesListPersister_xmlRootElement);
for (IIssue issue : this.list) {
try {
IMemento child = memento.createChild(MEMENTO_CHILD_TYPE, issue
.getId());
child.putString(GROUP_ID, issue.getGroupId());
child.putString(EXTENSION_ID, issue.getExtensionID());
child.putString(DESCRIPTION, issue.getDescription());
child.putString(PRIORITY, issue.getPriority().name());
child.putString(RESOLUTION, issue.getResolution().name());
// persist bounds
ReferencedEnvelope bounds = issue.getBounds();
child.putString(MIN_X, Double.toString(bounds.getMinX()));
child.putString(MAX_X, Double.toString(bounds.getMaxX()));
child.putString(MIN_Y, Double.toString(bounds.getMinY()));
child.putString(MAX_Y, Double.toString(bounds.getMaxY()));
child.putString(CRS, bounds.getCoordinateReferenceSystem()
.toWKT());
issue.getViewMemento(child.createChild(MEMENTO_VIEW_DATA));
issue.save(child.createChild(MEMENTO_ISSUE_DATA));
} catch (Throwable e) {
IssuesActivator.log("error when daving issue", e); //$NON-NLS-1$
}
}
FileWriter fileWriter = new FileWriter(getLocalIssuesFile());