Revision 921ee57e
Added by Katja Luther almost 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TreeNodeDropAdapterE4.java | ||
---|---|---|
34 | 34 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
35 | 35 |
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto; |
36 | 36 |
import eu.etaxonomy.cdm.persistence.hibernate.permission.CRUD; |
37 |
import eu.etaxonomy.taxeditor.event.EventUtility; |
|
38 |
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants; |
|
37 | 39 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
38 | 40 |
import eu.etaxonomy.taxeditor.navigation.l10n.Messages; |
39 | 41 |
import eu.etaxonomy.taxeditor.operation.IPostMoniteredOperationEnabled; |
... | ... | |
87 | 89 |
if(taxonNodes != null) { |
88 | 90 |
// if (taxonNodes.size() == 1){ |
89 | 91 |
boolean success = moveTaxon(taxonNodes, targetTreeNode); |
90 |
if (success){ |
|
91 |
taxonNavigator.refresh(); |
|
92 |
} |
|
92 |
// if (success){
|
|
93 |
// taxonNavigator.refresh();
|
|
94 |
// }
|
|
93 | 95 |
return success; |
94 | 96 |
// } else{ |
95 | 97 |
// if( MessageDialog.openConfirm(null, Messages.TreeNodeDropAdapter_MOVING, Messages.TreeNodeDropAdapter_MOVING_MESSAGE)){ |
... | ... | |
282 | 284 |
*/ |
283 | 285 |
@Override |
284 | 286 |
public void postOperation(IRemotingProgressMonitor monitor) { |
285 |
taxonNavigator.refresh();
|
|
287 |
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAVIGATOR, true);
|
|
286 | 288 |
} |
287 | 289 |
|
288 | 290 |
} |
Also available in: Unified diff
drag & drop also works as longRunningTask