Project

General

Profile

« Previous | Next » 

Revision 0ac7eec9

Added by Katja Luther almost 6 years ago

ref #7463: preselect of the classification by the classification of the first selected node

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TreeNodeDropAdapterE4.java
220 220

  
221 221
		taxonNodes.forEach(nodeDto->EditorUtil.closeObsoleteEditor(nodeDto, partService));
222 222

  
223
//		TaxonNodeDto unsavedNode = taxonNodes.stream().filter(nodeDto ->
224
//		    !EditorUtil.closeObsoleteEditor(nodeDto, partService)).findAny().orElse(null);
225
//		if (unsavedNode != null){
226
//		    return false;
227
//		}
228 223
		moveNodes(uuids, targetITaxonTreeNode.getUuid(), movingTypeInt);
229 224
        return true;
230 225
	}
......
233 228
	    UUID uuid = CdmApplicationState.getLongRunningTasksService().monitLongRunningTask(taxonNodesToMoveUuid,
234 229
                newParentTreeNodeUuid, movingTypeInt);
235 230

  
236
                Display.getDefault().asyncExec(new Runnable() {
237
                    @Override
238
                    public void run() {
239
                        AbstractUtility.executeMoniteredOperation("Move Taxon to new parent: ",
240
                                uuid,
241
                                500,
242
                                false,
243
                                TreeNodeDropAdapterE4.this,
244
                                null);
245
                    }
246
                });
231
        Display.getDefault().asyncExec(new Runnable() {
232
            @Override
233
            public void run() {
234
                AbstractUtility.executeMoniteredOperation("Move Taxon to new parent: ",
235
                        uuid,
236
                        500,
237
                        false,
238
                        TreeNodeDropAdapterE4.this,
239
                        null);
240
            }
241
        });
247 242
	}
248 243

  
249 244

  

Also available in: Unified diff