Revision b0ce5b17
Added by Patrick Plitzner over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamOrPersonBaseDetailSection.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
16 | 16 |
import eu.etaxonomy.cdm.model.agent.Person; |
17 | 17 |
import eu.etaxonomy.cdm.model.agent.Team; |
18 | 18 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
19 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
19 | 20 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
20 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType; |
|
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
22 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
|
22 | 23 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
23 | 24 |
|
24 | 25 |
/** |
... | ... | |
43 | 44 |
ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) { |
44 | 45 |
super(cdmFormFactory, conversation, parentElement, selectionProvider, style); |
45 | 46 |
} |
46 |
|
|
47 |
/** {@inheritDoc} */ |
|
48 |
@Override |
|
49 |
protected DetailType getDetailType() { |
|
50 |
return DetailType.TEAMORPERSONBASE; |
|
51 |
} |
|
52 | 47 |
|
53 | 48 |
/** {@inheritDoc} */ |
54 | 49 |
@Override |
... | ... | |
62 | 57 |
} |
63 | 58 |
return "Team or Person"; |
64 | 59 |
} |
60 |
|
|
61 |
/* (non-Javadoc) |
|
62 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
63 |
*/ |
|
64 |
@Override |
|
65 |
protected AbstractCdmDetailElement<TeamOrPersonBase> createCdmDetailElement(AbstractCdmDetailSection<TeamOrPersonBase> parentElement, int style) { |
|
66 |
AbstractUtility.error(this.getClass(), "Detail element was not created. Seems like the case was not implemented for TeamOrPersonBaseDetailSection", null); |
|
67 |
//TODO DetailElement missing?? |
|
68 |
return null; |
|
69 |
} |
|
65 | 70 |
} |
Also available in: Unified diff
merged trunk into branch