Project

General

Profile

« Previous | Next » 

Revision 3429c5db

Added by Patrick Plitzner over 9 years ago

  • added support for image gallery creation for FieldUnits (#4389)
    • added support for DerivateView to MediaView

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/handler/AddExistingMediaHandler.java
25 25
            DescriptionBase description) {
26 26
        AbstractPostOperation operation = null;
27 27
        try {
28

  
29 28
            //select media
30 29
            Media media = MediaSelectionDialog.select(AbstractUtility.getShell(), null, null);
31
            // TODO use undo context specific to editor
32
            operation = new AddExistingMediaToImageGalleryOperation(media, event.getCommand().getName(),
33
                    EditorUtil.getUndoContext(), description, postOperationEnabled);
34
            AbstractUtility.executeOperation(operation);
30
            if(media!=null){
31
                // TODO use undo context specific to editor
32
                operation = new AddExistingMediaToImageGalleryOperation(media, event.getCommand().getName(),
33
                        EditorUtil.getUndoContext(), description, postOperationEnabled);
34
                AbstractUtility.executeOperation(operation);
35
            }
35 36
        } catch (NotDefinedException e) {
36 37
            MessagingUtils.warn(getClass(), "Command name not set.");
37 38
        }

Also available in: Unified diff