- fixed bug that showed double or no '&' (#4302)
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / taxon / TaxonBaseDetailSection.java
index 27849d6989f474bcb6615ea050015c99d4297c40..3a3a1fad749460a9188a67ec606f7a17133a628b 100644 (file)
@@ -55,4 +55,18 @@ public class TaxonBaseDetailSection extends AbstractCdmDetailSection<TaxonBase>
            return formFactory.createTaxonBaseDetailElement(parentElement, style);
        }
 
+       /* (non-Javadoc)
+        * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#setSectionTitle()
+        */
+       @Override
+       protected void setSectionTitle() {
+           super.setSectionTitle();
+           String title = getText();
+        // we have to duplicate ampersands otherwise they are treated as
+        // mnenomic (see Label.setText() documentation)
+        // see also #4302
+        title = title.replace("&", "&&");
+        setText(title);
+       }
+
 }