Revision e9bfec4a
Added by Patrick Plitzner over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateContentProvider.java | ||
---|---|---|
75 | 75 |
node.setParent(currentnode); |
76 | 76 |
children.add(node); |
77 | 77 |
} |
78 |
return children.toArray(); |
|
79 | 78 |
} |
80 | 79 |
else if(value instanceof Sequence){ |
81 | 80 |
Set<SingleRead> singleReads = ((Sequence) value).getSingleReads(); |
... | ... | |
86 | 85 |
} |
87 | 86 |
return children.toArray(); |
88 | 87 |
} |
89 |
else if(value instanceof SpecimenOrObservationBase){ |
|
88 |
|
|
89 |
if(value instanceof SpecimenOrObservationBase){ |
|
90 | 90 |
List<DerivedUnit> derivates = getDerivates((SpecimenOrObservationBase<?>) value); |
91 | 91 |
for (DerivedUnit derivedUnit:derivates) { |
92 | 92 |
TreeNode node = new TreeNode(derivedUnit); |
... | ... | |
121 | 121 |
else if(element instanceof Sequence){ |
122 | 122 |
return !((Sequence)element).getSingleReads().isEmpty(); |
123 | 123 |
} |
124 |
else if(element instanceof SpecimenOrObservationBase){ |
|
124 |
|
|
125 |
if(element instanceof SpecimenOrObservationBase){ |
|
125 | 126 |
SpecimenOrObservationBase<?> specimenOrObservation = (SpecimenOrObservationBase<?>)element; |
126 | 127 |
for(DerivationEvent event:specimenOrObservation.getDerivationEvents()){ |
127 | 128 |
if(!event.getDerivatives().isEmpty()){ |
Also available in: Unified diff
Fix child hierarchy for DnaSamples