Revision 3e3ddf18
minor
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailElement.java | ||
---|---|---|
26 | 26 |
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent; |
27 | 27 |
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement; |
28 | 28 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
29 |
import eu.etaxonomy.taxeditor.ui.element.ISelectableElement; |
|
30 |
import eu.etaxonomy.taxeditor.ui.element.SelectionArbitrator; |
|
29 | 31 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
30 | 32 |
import eu.etaxonomy.taxeditor.ui.element.ToggleableTextElement; |
31 | 33 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
... | ... | |
53 | 55 |
|
54 | 56 |
private CheckboxElement checkbox_published; |
55 | 57 |
|
58 |
private SelectionArbitrator selectionArbitrator; |
|
59 |
|
|
56 | 60 |
|
57 | 61 |
private Taxon taxon; |
58 | 62 |
|
59 | 63 |
public TaxonRelationshipDetailElement(CdmFormFactory formFactory, |
60 | 64 |
ICdmFormElement formElement) { |
61 | 65 |
super(formFactory, formElement); |
66 |
|
|
62 | 67 |
} |
63 | 68 |
|
64 | 69 |
@Override |
... | ... | |
78 | 83 |
"Title Cache", taxon.getTitleCache(), |
79 | 84 |
taxon.isProtectedTitleCache(), style); |
80 | 85 |
|
81 |
text_appendedPhrase = formFactory.createTextWithLabelElement( |
|
86 |
text_appendedPhrase = formFactory.createTextWithLabelElement(
|
|
82 | 87 |
formElement, "Appended Phrase", taxon.getAppendedPhrase(), |
83 | 88 |
SWT.WRAP); |
84 | 89 |
|
... | ... | |
110 | 115 |
taxon.getSecMicroReference(),null, |
111 | 116 |
SWT.WRAP); |
112 | 117 |
checkbox_doubtful = formFactory.createCheckbox(formElement, |
113 |
" Misappl. doubtful", entity.isDoubtful(), style);
|
|
118 |
"Misappl. doubtful", entity.isDoubtful(), style); |
|
114 | 119 |
|
115 | 120 |
|
116 | 121 |
} |
... | ... | |
189 | 194 |
updateContent(); |
190 | 195 |
updateToggleableCacheField(); |
191 | 196 |
} |
197 |
|
|
198 |
|
|
199 |
|
|
200 |
|
|
192 | 201 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailSection.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.ui.section.taxon; |
10 | 10 |
|
11 |
import org.apache.commons.lang.StringUtils; |
|
11 | 12 |
import org.eclipse.jface.viewers.ISelectionProvider; |
12 | 13 |
|
13 | 14 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
... | ... | |
39 | 40 |
|
40 | 41 |
@Override |
41 | 42 |
public String getHeading() { |
42 |
return getEntity() != null ? getEntity().getType().getLabel(): "Taxon Relation"; |
|
43 |
|
|
44 |
return getEntity() != null ? StringUtils.replace( getEntity().getType().getLabel(), "for", ""): "Taxon Relation"; |
|
43 | 45 |
} |
44 | 46 |
|
45 | 47 |
/* (non-Javadoc) |
Also available in: Unified diff