model.beginRecording(this);
}
Document ownerDocument = beanNode.getOwnerDocument();
AttrImpl attrNode = (AttrImpl) ownerDocument.createAttribute(BeansSchemaConstants.ATTR_FACTORY_METHOD);
beanNode.getAttributes().setNamedItem(attrNode);
FormatProcessorXML formatter = new FormatProcessorXML();
formatter.formatNode(beanNode);
if (model != null) {
model.endRecording(this);
}
LinkedModeModel linkModel = new LinkedModeModel();
LinkedPositionGroup group = new LinkedPositionGroup();
attrNode = ((AttrImpl) beanNode.getAttributes().getNamedItem(BeansSchemaConstants.ATTR_FACTORY_METHOD));
try {
group.addPosition(new LinkedPosition(document, attrNode.getValueRegionStartOffset() + 1, 0));
linkModel.addGroup(group);
}
catch (BadLocationException e) {
StatusHandler.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID,