// $Id$
/**
* 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.
*/
*/
public NameRelationshipDetailSection(CdmFormFactory formFactory, ConversationHolder conversation,
ICdmFormElement parentElement, int style) {
- super(formFactory, conversation, parentElement, "Name Relationship", style);
+ super(formFactory, conversation, parentElement, "Name Relationships", style);
}
/** {@inheritDoc} */
/** {@inheritDoc} */
@Override
public NameRelationship createNewElement() {
-
+
NameRelationshipWizard wizard = new NameRelationshipWizard(this);
WizardDialog dialog = new WizardDialog(StoreUtil.getShell(), wizard);
int status = dialog.open();
-
- if(status == IStatus.OK)
- return wizard.getNameRelationship();
-
+
+ if(status == IStatus.OK) {
+ return wizard.getNameRelationship();
+ }
+
return null;
}
@Override
public void removeElement(NameRelationship element) {
getEntity().removeNameRelationship(element);
- }
-
+ }
+
/*
* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
*/
/** {@inheritDoc} */
- public void setTaxonBase(TaxonBase entity) {
+ @Override
+ public void setTaxonBase(TaxonBase entity) {
this.taxonBase = entity;
NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName());
setEntity(name);