Project

General

Profile

« Previous | Next » 

Revision f35bd02a

Added by Patrick Plitzner almost 7 years ago

ref #6730 Adapt to cdmlib changes

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/DeleteHandler.java
102 102

  
103 103
					// TODO use undo context specific to editor
104 104
                    MediaDeletionConfigurator config = new MediaDeletionConfigurator();
105
                    config.setDeleteIfUsedInTaxonDescription(true);
105
                    config.setDeleteFromDescription(true);
106 106
                    config.setOnlyRemoveFromGallery(false);
107 107

  
108 108
                    if (!DeleteConfiguratorDialog.openConfirmWithConfigurator(config, HandlerUtil.getActiveShell(event), Messages.DeleteHandler_CONFIRM_DELETION,  Messages.DeleteHandler_CONFIRM_DELETION_MESSAGE)){
......
110 110
                    }
111 111

  
112 112

  
113
                    
113

  
114 114
                    if (config.isOnlyRemoveFromGallery() || ((Media)object).getId() == 0){
115 115
                        operations.add(new RemoveImageFromDescriptionElementOperation(label, undoContext,  (Media) object, imageGallery, postOperationEnabled));
116 116
                    }else{

Also available in: Unified diff