Project

General

Profile

« Previous | Next » 

Revision 98c7c2f1

Added by U-BGBM\k.luther over 7 years ago

moving taxonnode with drag & drop as predecessor fixed

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TreeNodeDropAdapter.java
235 235
					logger.error("Workspace undo context is null. DND operation cancelled");
236 236
					return false;
237 237
				}
238
				TaxonNode targetNode = (TaxonNode) targetITaxonTreeNode;
238 239

  
239 240
				AbstractPostOperation operation = new MoveTaxonOperation
240
						("Move Taxon", workspaceUndoContext, uuids, targetITaxonTreeNode, this, taxonNavigator, false);
241
						("Move Taxon", workspaceUndoContext, uuids, targetNode.getParent(), this, taxonNavigator, false);
241 242
				NavigationUtil.executeOperation(operation);
242 243

  
243 244
				logger.info("Moved taxa to new parent " + targetITaxonTreeNode);
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TreeNodeDropAdapterAssistant.java
225 225
					logger.error("Workspace undo context is null. DND operation cancelled");
226 226
					return Status.CANCEL_STATUS;
227 227
				}
228

  
228
				TaxonNode targetNode = (TaxonNode) targetITaxonTreeNode;
229 229
				AbstractPostOperation operation = new MoveTaxonOperation
230
						("Move Taxon", workspaceUndoContext, uuids, targetITaxonTreeNode, this, taxonNavigator, false);
230
						("Move Taxon", workspaceUndoContext, uuids, targetNode.getParent(), this, taxonNavigator, false);
231 231
				NavigationUtil.executeOperation(operation);
232 232

  
233 233
				logger.info("Moved taxa to new parent " + targetITaxonTreeNode);

Also available in: Unified diff