Revision 341ee745
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/SourceSection.java | ||
---|---|---|
7 | 7 |
import java.util.Comparator; |
8 | 8 |
|
9 | 9 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
10 |
import eu.etaxonomy.cdm.model.common.IIdentifiableEntity;
|
|
10 |
import eu.etaxonomy.cdm.model.common.ISourceable;
|
|
11 | 11 |
import eu.etaxonomy.cdm.model.common.IdentifiableSource; |
12 | 12 |
import eu.etaxonomy.cdm.model.common.OriginalSourceType; |
13 | 13 |
import eu.etaxonomy.cdm.model.media.Media; |
... | ... | |
23 | 23 |
* @created Nov 17, 2009 |
24 | 24 |
* @version 1.0 |
25 | 25 |
*/ |
26 |
public class SourceSection extends AbstractEntityCollectionSection<IIdentifiableEntity, IdentifiableSource> {
|
|
26 |
public class SourceSection extends AbstractEntityCollectionSection<ISourceable, IdentifiableSource> {
|
|
27 | 27 |
|
28 | 28 |
/** |
29 | 29 |
* <p>Constructor for SourceSection.</p> |
... | ... | |
40 | 40 |
/** {@inheritDoc} */ |
41 | 41 |
@Override |
42 | 42 |
public IdentifiableSource createNewElement() { |
43 |
IIdentifiableEntity entity = getEntity();
|
|
43 |
ISourceable entity = getEntity();
|
|
44 | 44 |
OriginalSourceType type; |
45 | 45 |
if(entity instanceof Media) { |
46 | 46 |
type = OriginalSourceType.PrimaryMediaSource; |
... | ... | |
55 | 55 |
/** {@inheritDoc} */ |
56 | 56 |
@Override |
57 | 57 |
public Collection<IdentifiableSource> getCollection( |
58 |
IIdentifiableEntity entity) {
|
|
58 |
ISourceable entity) {
|
|
59 | 59 |
return entity.getSources(); |
60 | 60 |
} |
61 | 61 |
|
... | ... | |
106 | 106 |
return false; |
107 | 107 |
} |
108 | 108 |
|
109 |
|
|
110 |
|
|
109 | 111 |
} |
Also available in: Unified diff
adadpt editor to changes in TypeDesignationBase