Revision 62d710d7
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameRelationshipDetailSection.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
48 | 48 |
*/ |
49 | 49 |
public NameRelationshipDetailSection(CdmFormFactory formFactory, ConversationHolder conversation, |
50 | 50 |
ICdmFormElement parentElement, int style) { |
51 |
super(formFactory, conversation, parentElement, "Name Relationship", style); |
|
51 |
super(formFactory, conversation, parentElement, "Name Relationships", style);
|
|
52 | 52 |
} |
53 | 53 |
|
54 | 54 |
/** {@inheritDoc} */ |
... | ... | |
60 | 60 |
/** {@inheritDoc} */ |
61 | 61 |
@Override |
62 | 62 |
public NameRelationship createNewElement() { |
63 |
|
|
63 |
|
|
64 | 64 |
NameRelationshipWizard wizard = new NameRelationshipWizard(this); |
65 | 65 |
WizardDialog dialog = new WizardDialog(StoreUtil.getShell(), wizard); |
66 | 66 |
int status = dialog.open(); |
67 |
|
|
68 |
if(status == IStatus.OK) |
|
69 |
return wizard.getNameRelationship(); |
|
70 |
|
|
67 |
|
|
68 |
if(status == IStatus.OK) { |
|
69 |
return wizard.getNameRelationship(); |
|
70 |
} |
|
71 |
|
|
71 | 72 |
return null; |
72 | 73 |
} |
73 | 74 |
|
... | ... | |
95 | 96 |
@Override |
96 | 97 |
public void removeElement(NameRelationship element) { |
97 | 98 |
getEntity().removeNameRelationship(element); |
98 |
}
|
|
99 |
|
|
99 |
} |
|
100 |
|
|
100 | 101 |
/* |
101 | 102 |
* (non-Javadoc) |
102 | 103 |
* @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase) |
103 | 104 |
*/ |
104 | 105 |
/** {@inheritDoc} */ |
105 |
public void setTaxonBase(TaxonBase entity) { |
|
106 |
@Override |
|
107 |
public void setTaxonBase(TaxonBase entity) { |
|
106 | 108 |
this.taxonBase = entity; |
107 | 109 |
NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName()); |
108 | 110 |
setEntity(name); |
Also available in: Unified diff
fix #5660: rename Name Relationship to Name Relationships