writer.dataElement("detachedBounds", attributes);
}
// Prepare "minimizedState" sub element if necessary
if (content.isMinimized()) {
ContentDescriptor contentDescriptor = (ContentDescriptor) toolWindowManager.getDockableDescriptor(content.getId());
AttributesImpl attributes = new AttributesImpl();
attributes.addAttribute(null, "anchor", null, null, contentDescriptor.getAnchor().toString());
attributes.addAttribute(null, "anchorIndex", null, null, String.valueOf(contentDescriptor.getAnchorIndex()));
writer.dataElement("minimizedState", attributes);
}
writer.endElement("content");