ref #5495 always empty details view when there is no active editor
authorPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 13 Jan 2017 12:51:58 +0000 (13:51 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 13 Jan 2017 12:51:58 +0000 (13:51 +0100)
providing a selection

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewPart.java

index 11846fab0667572b4a5783e5e6cdf468aae6e841..7cc6f31565fdb5f7c254ecdeb73e93c56c2694a7 100644 (file)
@@ -61,6 +61,12 @@ public class DetailsViewPart extends AbstractCdmEditorViewPart implements IPartC
             return;
         }
 
+           if(AbstractUtility.getActiveEditor() == null &&
+                   selection instanceof IStructuredSelection && ((IStructuredSelection) selection).getFirstElement() !=null){
+               //special case where the details view still open with details about the closed object #5495
+               showEmptyPage();
+               return;
+           }
         if(part == this){
             return;
         }