Project

General

Profile

« Previous | Next » 

Revision e2ab596e

Added by Katja Luther over 2 years ago

ref #9882: remember operations and execute while saving

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java
202 202
            DescriptionElementBase descriptionElement = (DescriptionElementBase) object;
203 203
            DescriptionBase<?> description = descriptionElement.getInDescription();
204 204
            FeatureNodeContainerTree containerTree = featureNodeContainerCache.get(description);
205
            FeatureNodeContainer featureNodeContainer = containerTree.getFeatureNodeContainerForDescriptionElement(descriptionElement);
206
            if (featureNodeContainer == null){
207
                containerTree = new FeatureNodeContainerTree(description, provider.getFeatureTree(description));
208
                featureNodeContainerCache.put(description, containerTree);
209
                featureNodeContainer = containerTree.getFeatureNodeContainerForDescriptionElement(descriptionElement);
205
            if (containerTree != null){
206
            	FeatureNodeContainer featureNodeContainer = containerTree.getFeatureNodeContainerForDescriptionElement(descriptionElement);
207
            	if (featureNodeContainer == null){
208
                    containerTree = new FeatureNodeContainerTree(description, provider.getFeatureTree(description));
209
                    featureNodeContainerCache.put(description, containerTree);
210
                    featureNodeContainer = containerTree.getFeatureNodeContainerForDescriptionElement(descriptionElement);
211
                }
212
                ((AbstractTreeViewer) viewer).expandToLevel(featureNodeContainer, 2);
213
            }
214
            if (object != null){
215
            	StructuredSelection selection = new StructuredSelection(object);
216
            	viewer.setSelection(selection, true);
210 217
            }
211
            ((AbstractTreeViewer) viewer).expandToLevel(featureNodeContainer, 2);
212
            StructuredSelection selection = new StructuredSelection(object);
213
            viewer.setSelection(selection, true);
218
            
214 219
        }
215 220

  
216 221

  

Also available in: Unified diff