Project

General

Profile

« Previous | Next » 

Revision 2387a634

Added by Katja Luther almost 8 years ago

add PolytomousKeyService to CdmStore.getService and EditFromSelectionWizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java
33 33
import eu.etaxonomy.cdm.api.service.ICommonService;
34 34
import eu.etaxonomy.cdm.api.service.INameService;
35 35
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
36
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService;
36 37
import eu.etaxonomy.cdm.api.service.IReferenceService;
37 38
import eu.etaxonomy.cdm.api.service.IService;
38 39
import eu.etaxonomy.cdm.api.service.IUserService;
......
44 45
import eu.etaxonomy.cdm.model.common.CdmBase;
45 46
import eu.etaxonomy.cdm.model.common.Language;
46 47
import eu.etaxonomy.cdm.model.common.User;
48
import eu.etaxonomy.cdm.model.description.PolytomousKey;
47 49
import eu.etaxonomy.cdm.model.molecular.Amplification;
48 50
import eu.etaxonomy.cdm.model.molecular.Primer;
49 51
import eu.etaxonomy.cdm.model.name.NonViralName;
......
641 643
            }
642 644
            else if (cdmBase instanceof Amplification) {
643 645
                service = (IService<T>) getService(IAmplificationService.class);
646
            } else if (cdmBase instanceof PolytomousKey) {
647
                service = (IService<T>) getService(IPolytomousKeyService.class);
644 648
            }
645 649
        }
646 650
        return service;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/EditFromSelectionWizard.java
29 29
import eu.etaxonomy.cdm.model.agent.Team;
30 30
import eu.etaxonomy.cdm.model.common.CdmBase;
31 31
import eu.etaxonomy.cdm.model.common.User;
32
import eu.etaxonomy.cdm.model.description.PolytomousKey;
32 33
import eu.etaxonomy.cdm.model.molecular.Amplification;
33 34
import eu.etaxonomy.cdm.model.molecular.Primer;
34 35
import eu.etaxonomy.cdm.model.name.NonViralName;
......
41 42
import eu.etaxonomy.taxeditor.model.MessagingUtils;
42 43
import eu.etaxonomy.taxeditor.model.TextHelper;
43 44
import eu.etaxonomy.taxeditor.newWizard.AmplificationGeneralWizardPage;
45
import eu.etaxonomy.taxeditor.newWizard.PolytomousKeyWizardPage;
44 46
import eu.etaxonomy.taxeditor.newWizard.PrimerWizardPage;
45 47
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
46 48
import eu.etaxonomy.taxeditor.session.ICdmEntitySession;
......
162 164
            addPage(new AmplificationGeneralWizardPage(formFactory,
163 165
                    selectionElement.getConversationHolder(),
164 166
                    HibernateProxyHelper.deproxy(rootElement, Amplification.class)));
167
        } else if (rootElement instanceof PolytomousKey) {
168
            addPage(new PolytomousKeyWizardPage(formFactory,
169
                    selectionElement.getConversationHolder(),
170
                    HibernateProxyHelper.deproxy(rootElement, PolytomousKey.class)));
165 171
        } else {
166 172
			MessagingUtils.warningDialog("Missing interface", this,
167 173
					"No detail element for current selection");

Also available in: Unified diff