Project

General

Profile

Revision c559d0b4

IDc559d0b41ce29b08057c4495a8bff450c9800736
Parent a347d48a
Child edd8f8c8

Added by Patrick Plitzner 7 months ago

ref #7775 Update label when changing sources

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java
178 178
        for(FeatureNodeContainerTree containerTree : featureNodeContainerCache.values()){
179 179
            containerTree.buildTree();
180 180
        }
181
        ((AbstractTreeViewer) viewer).expandToLevel(2);
182
        viewer.refresh();
183 181

  
184 182
        if(object instanceof DescriptionElementBase){
185 183
            DescriptionElementBase descriptionElement = (DescriptionElementBase) object;
......
190 188
            ((AbstractTreeViewer) viewer).expandToLevel(featureNodeContainer, 1);
191 189

  
192 190
        }
191
        else if(object instanceof DescriptionBase){
192
            //refresh label due to possible source changes
193
            ((DescriptionBase) object).setTitleCache(null, false);
194
        }
193 195

  
194 196
        if(object != null){
195 197
            StructuredSelection selection = new StructuredSelection(object);
196 198
            viewer.setSelection(selection, true);
197 199
        }
198
//        if(part instanceof BulkEditor && !(object instanceof SpecimenOrObservationBase<?>)){
199
//            ((BulkEditor) part).forceDirty();
200
//            IStructuredSelection selection = (IStructuredSelection) ((BulkEditor) part).getSelectionProvider().getSelection();
201
//            ((BulkEditor) part).changed(selection.getFirstElement());
202
//
203
//        }
204
//
205
//        if (part instanceof E4PartWrapper){
206
//            part = WorkbenchUtility.getE4WrappedPart(part);
207
//            if (part instanceof IDirtyMarkable){
208
//                 StructuredSelection selection = new StructuredSelection(object);
209
//                ((IDirtyMarkable)part).changed(selection.getFirstElement());
210
//            }
211
//        }
212

  
200
        ((AbstractTreeViewer) viewer).expandToLevel(2);
201
        viewer.refresh();
213 202

  
214 203
        super.changed(object);
215 204
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)