Revision 19c6a52f
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/ConceptContentProvider.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
19 | 19 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
20 | 20 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
21 |
import eu.etaxonomy.taxeditor.editor.e4.TaxonEditorInputE4; |
|
22 | 21 |
|
23 | 22 |
/** |
24 | 23 |
* @author n.hoffmann |
... | ... | |
39 | 38 |
@Override |
40 | 39 |
public Object[] getElements(Object inputElement) { |
41 | 40 |
Taxon taxon = null; |
42 |
if(inputElement instanceof TaxonEditorInputE4){ |
|
43 |
taxon = ((TaxonEditorInputE4) inputElement).getTaxon(); |
|
44 |
} |
|
45 |
else if(inputElement instanceof Taxon){ |
|
41 |
if(inputElement instanceof Taxon){ |
|
46 | 42 |
taxon = (Taxon) inputElement; |
47 | 43 |
} |
48 | 44 |
if(taxon!=null){ |
Also available in: Unified diff
ref #6911 Fix part labeling