package eu.etaxonomy.taxeditor.editor.name.container;
-import javax.persistence.GenerationType;
-
import org.apache.commons.lang.StringUtils;
import org.eclipse.swt.graphics.Font;
*
* @author p.ciardelli
* @created 13.01.2009
- * @version 1.0
*/
public class MisapplicationContainer extends AbstractGroupedContainer<Taxon> {
TaxonRelationship misapplication;
}
-
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.editor.name.NameComposite#initializeComposite()
- */
/** {@inheritDoc} */
@Override
protected void initializeComposite() {
}
String title = "";
String author = "";
- TaxonName misappliedNameName = HibernateProxyHelper.deproxy(getMisappliedName().getName(), TaxonName.class);
- if (misappliedNameName.getAuthorshipCache() != null && !StringUtils.isBlank(misappliedNameName.getAuthorshipCache())&& getMisappliedName().getAppendedPhrase() == null){
+ TaxonName misappliedNameName = HibernateProxyHelper.deproxy(getMisappliedName().getName());
+ if (StringUtils.isNotBlank(misappliedNameName.getAuthorshipCache())){
author = ", non " + misappliedNameName.getAuthorshipCache();
}
if (misapplication.getCitation() == null) {
sec = getMisappliedName().getAppendedPhrase() + " "+sec; //$NON-NLS-1$
}
title += sec + getMisappliedName().getSec().getTitleCache();
-
-
-
-
}
title += author;
title = title.replace("&", "&&"); //$NON-NLS-1$ //$NON-NLS-2$
return EditorUtil.getFont(Resources.MISAPPLIEDNAME_FONT);
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.editor.name.container.AbstractGroupedContainer#showAnnotations()
- */
@Override
public void showAnnotations() {
if(getData().getSec() == null){
showSec();
}
-
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.editor.name.AbstractGroupedContainer#updateIndent()
- */
@Override
protected void updateIndent() {
setIndent(MISAPPLIEDNAME_INDENT);