Project

General

Profile

« Previous | Next » 

Revision 2d7d6704

Added by Patrick Plitzner over 7 years ago

fix #5801 Make concept relations view work with taxon bulk editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/ConceptViewPart.java
25 25
import org.eclipse.ui.IWorkbenchActionConstants;
26 26
import org.eclipse.ui.IWorkbenchPart;
27 27

  
28
import eu.etaxonomy.cdm.model.taxon.Taxon;
28 29
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;
29 30
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
30 31
import eu.etaxonomy.taxeditor.editor.key.AbstractGraphKeyEditor;
31 32
import eu.etaxonomy.taxeditor.model.AbstractUtility;
32 33
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
33 34
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
35
import eu.etaxonomy.taxeditor.model.LineSelection;
34 36
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart;
35 37

  
36 38
/**
......
51 53
			return;
52 54
		}
53 55

  
54
		if(part instanceof BulkEditor){
55
			showEmptyPage();
56
		if(part instanceof BulkEditor && selection instanceof LineSelection){
57
			if(((LineSelection) selection).getFirstElement() instanceof Taxon){
58
				showViewer(part, (LineSelection) selection);
59
			}
60
			else{
61
				showEmptyPage();
62
			}
56 63
			return;
57 64
		}
58 65

  

Also available in: Unified diff