- protected SectionTitle newSectionTitle(TextSection parent, Node node) throws RepositoryException {
- SectionTitle title = new SectionTitle(parent.getHeader(), parent.getStyle(), node.getProperty(JCR_TITLE));
+ protected DocBookSectionTitle newSectionTitle(TextSection parent, Node titleNode) throws RepositoryException {
+ int style = parent.getStyle();
+ Composite titleParent = newSectionHeader(parent);
+ if (parent.isTitleReadOnly())
+ style = style | SWT.READ_ONLY;
+ DocBookSectionTitle title = new DocBookSectionTitle(titleParent, style, titleNode);