/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
* @version 1.0
*/
public class MisapplicationContainer extends AbstractGroupedContainer<Taxon> {
-
+
/**
* <p>Constructor for MisapplicationContainer.</p>
*
public MisapplicationContainer(AbstractGroup group, Taxon misappliedName) {
super(misappliedName);
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.editor.name.NameComposite#initializeComposite()
protected void initializeComposite() {
setIsDraggable(true);
setFont(getViewerFont());
-
- showSec();
-
+
+ showSec();
+
initTextViewer();
}
protected void updateIcon() {
setIcon(MISAPPLIEDNAME_ICON);
}
-
+
private void showSec() {
if (getMisappliedName() == null) {
return;
}
-
+
if (getMisappliedName().getSec() == null) {
setNonEditableInfo("sec. ???", false);
} else {
String title = getMisappliedName().getSec().getTitleCache();
+ title = title.replace("&", "&&");
setNonEditableInfo("sec. " + title, false);
}
}
-
+
/**
* <p>getMisappliedName</p>
*
protected Font getViewerFont() {
return EditorUtil.getFont(Resources.MISAPPLIEDNAME_FONT);
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.editor.name.container.AbstractGroupedContainer#showAnnotations()
*/
}
super.showAnnotations();
}
-
+
/** {@inheritDoc} */
@Override