disable details for distributions in distribution editor
authorKatja Luther <k.luther@bgbm.org>
Fri, 3 May 2019 12:49:43 +0000 (14:49 +0200)
committerKatja Luther <k.luther@bgbm.org>
Fri, 3 May 2019 12:49:43 +0000 (14:49 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java

index 557a2d912ddb09b854df341986f6b5b44856cac0..da40378ff3cf8158c75b9ead98c9d828ebf30a15 100644 (file)
@@ -230,7 +230,9 @@ public abstract class AbstractCdmEditorPartE4
                 selectionProvidingPart = activePart;
                 if (viewer instanceof DetailsViewerE4){
                     ((DetailsViewerE4)viewer).setInput(element, part);
                 selectionProvidingPart = activePart;
                 if (viewer instanceof DetailsViewerE4){
                     ((DetailsViewerE4)viewer).setInput(element, part);
-                    ((DetailsViewerE4)viewer).setDetailsEnabled(true);
+                    if (!selectionProvidingPart.getElementId().equals("eu.etaxonomy.taxeditor.editor.view.checklist.e4.DistributionEditorPart")){
+                        ((DetailsViewerE4)viewer).setDetailsEnabled(true);
+                    }
 
                 }
 
 
                 }