Revision 4765e3e9
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java | ||
---|---|---|
130 | 130 |
|
131 | 131 |
|
132 | 132 |
if ((partObject instanceof DetailsPartE4 && !(selection instanceof TaxonName))|| partObject instanceof SupplementalDataPartE4 |
133 |
|| partObject instanceof MediaViewPartE4 || partObject instanceof ConceptViewPartE4) { |
|
133 |
|| partObject instanceof MediaViewPartE4 || partObject instanceof ConceptViewPartE4 || ((partObject instanceof AbstractCdmEditorPartE4) &&(((AbstractCdmEditorPartE4)partObject).getViewer().getInput() instanceof DescriptionElementBase))) {
|
|
134 | 134 |
// do not show empty page as these views are also used to edit the |
135 | 135 |
// description selected in this view |
136 | 136 |
return; |
... | ... | |
162 | 162 |
&& partObject instanceof IPartContentHasFactualData |
163 | 163 |
&& !(firstElement instanceof SpecimenOrObservationBase && partObject instanceof BulkEditorE4)){ |
164 | 164 |
// && !(firstElement instanceof TaxonName && partObject instanceof BulkEditorE4)){ |
165 |
if (firstElement instanceof TaxonName){ |
|
165 |
if (firstElement instanceof TaxonName ){
|
|
166 | 166 |
thisPart.setLabel(Messages.NameFactsDataView_Lable); |
167 | 167 |
}else{ |
168 | 168 |
thisPart.setLabel(Messages.FactualDataView_Lable); |
... | ... | |
187 | 187 |
for(FeatureNodeContainerTree containerTree : featureNodeContainerCache.values()){ |
188 | 188 |
containerTree.buildTree(); |
189 | 189 |
} |
190 |
|
|
190 |
if (featureNodeContainerCache.isEmpty()){ |
|
191 |
return; |
|
192 |
} |
|
191 | 193 |
if(object instanceof DescriptionElementBase){ |
192 | 194 |
DescriptionElementBase descriptionElement = (DescriptionElementBase) object; |
193 | 195 |
DescriptionBase description = descriptionElement.getInDescription(); |
Also available in: Unified diff
fix #8316: fix endless loop when editing name in source