Revision 683f5cd1
Added by Katja Luther almost 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java | ||
---|---|---|
55 | 55 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.NameDescriptionFilter; |
56 | 56 |
import eu.etaxonomy.taxeditor.editor.view.media.e4.MediaViewPartE4; |
57 | 57 |
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants; |
58 |
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer; |
|
59 | 58 |
import eu.etaxonomy.taxeditor.model.FeatureNodeContainerTree; |
60 | 59 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
61 | 60 |
import eu.etaxonomy.taxeditor.model.IPartContentHasFactualData; |
... | ... | |
200 | 199 |
if (featureNodeContainerCache.isEmpty()){ |
201 | 200 |
// return; |
202 | 201 |
} |
203 |
if(object instanceof DescriptionElementBase){ |
|
204 |
DescriptionElementBase descriptionElement = (DescriptionElementBase) object; |
|
205 |
DescriptionBase description = descriptionElement.getInDescription(); |
|
206 |
FeatureNodeContainerTree containerTree = featureNodeContainerCache.get(description); |
|
207 |
|
|
208 |
FeatureNodeContainer featureNodeContainer = containerTree.getFeatureNodeContainerForDescriptionElement(descriptionElement); |
|
209 |
// ((AbstractTreeViewer) viewer).expandToLevel(featureNodeContainer, 1); |
|
210 |
|
|
211 |
} |
|
202 |
// if(object instanceof DescriptionElementBase){
|
|
203 |
// DescriptionElementBase descriptionElement = (DescriptionElementBase) object;
|
|
204 |
// DescriptionBase description = descriptionElement.getInDescription();
|
|
205 |
//// FeatureNodeContainerTree containerTree = featureNodeContainerCache.get(description);
|
|
206 |
// |
|
207 |
//// FeatureNodeContainer featureNodeContainer = containerTree.getFeatureNodeContainerForDescriptionElement(descriptionElement);
|
|
208 |
//// ((AbstractTreeViewer) viewer).expandToLevel(featureNodeContainer, 1);
|
|
209 |
// |
|
210 |
// }
|
|
212 | 211 |
|
213 | 212 |
|
214 | 213 |
viewer.refresh(); |
Also available in: Unified diff
fix NPE in factualDataPart