Revision a452be91
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailSection.java | ||
---|---|---|
126 | 126 |
super.setEntity(entity); |
127 | 127 |
setSectionTitle(); |
128 | 128 |
layout(); |
129 |
|
|
129 | 130 |
} |
130 | 131 |
|
131 | 132 |
protected void setSectionTitle() { |
... | ... | |
137 | 138 |
if (label == null){ |
138 | 139 |
label = ((DefinedTermBase<?>)getEntity()).getLabel(); |
139 | 140 |
} |
140 |
|
|
141 |
|
|
141 | 142 |
} else if (getEntity() instanceof TextData){ |
142 | 143 |
label = ((TextData)getEntity()).getLanguageText(PreferencesUtil.getGlobalLanguage()).getText(); |
143 | 144 |
if (label == null){ |
... | ... | |
147 | 148 |
label =((IdentifiableEntity) getEntity()).getTitleCache(); |
148 | 149 |
} |
149 | 150 |
title = ": " + label; |
150 |
|
|
151 |
|
|
151 | 152 |
// we have to duplicate ampersands otherwise they are treated as |
152 | 153 |
// mnenomic (see Label.setText() documentation) |
153 | 154 |
// see also #4302 |
... | ... | |
173 | 174 |
@Override |
174 | 175 |
public void setIrrelevant(boolean irrelevant) { |
175 | 176 |
if (detailElement != null) { |
177 |
|
|
176 | 178 |
detailElement.setIrrelevant(irrelevant); |
177 | 179 |
} |
178 | 180 |
} |
Also available in: Unified diff
fix #3737: improve handling of protected/not protected cache fields