Empty concept view if an unsupported view is selected
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 5 Jul 2016 11:20:04 +0000 (13:20 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 14 Jul 2016 10:02:06 +0000 (12:02 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/ConceptViewPart.java

index 898301e69bd4f991adc81bf827d504f0bb7848c1..b71305da78943d8b52f04570a5fd4b5e24d95333 100644 (file)
@@ -56,18 +56,21 @@ public class ConceptViewPart extends AbstractCdmEditorViewPart implements IPartC
                        return;
                }
 
-               if(part instanceof AbstractGraphKeyEditor){
+               else if(part instanceof AbstractGraphKeyEditor){
                        showEmptyPage();
                        return;
                }
 
-               if(part instanceof MultiPageTaxonEditor){
+               else if(part instanceof MultiPageTaxonEditor){
                        if(! part.equals(this.part)){
                                IEditorInput input = ((IEditorPart) part).getEditorInput();
                                showViewer(part, new StructuredSelection(input));
                        }
                        showViewer();
                }
+               else {
+                   showEmptyPage();
+               }
 
        }