Project

General

Profile

« Previous | Next » 

Revision 82d37a4c

Added by Katja Luther over 3 years ago

ref #9199: adapt editor to SingleSourcedEntityBase

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameRelationshipDetailElement.java
22 22
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
23 23
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
24 24
import eu.etaxonomy.taxeditor.ui.element.LabelElement;
25
import eu.etaxonomy.taxeditor.ui.section.supplemental.AbstractReferencedEntityElement;
25
import eu.etaxonomy.taxeditor.ui.element.SelectionArbitrator;
26
import eu.etaxonomy.taxeditor.ui.section.supplemental.AbstractSingleSourceElement;
26 27
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
27 28

  
28 29
/**
......
31 32
 * @author n.hoffmann
32 33
 * @created Mar 18, 2010
33 34
 */
34
public class NameRelationshipDetailElement extends AbstractReferencedEntityElement<NameRelationship>{
35
public class NameRelationshipDetailElement extends AbstractSingleSourceElement<NameRelationship>{
35 36

  
36 37
	private RuleConsideredElement ruleConsidered;
37 38
	private EntitySelectionElement<?> selection_toName;
......
85 86
		else if(eventSource == selection_toName){
86 87
			MessagingUtils.error(getClass(), "No API call available.", null);
87 88
		}
88
		else if(eventSource == selection_reference){
89
			getEntity().setCitation(selection_reference.getSelection());
90
		}
91
		else if(eventSource == text_referenceDetail){
92
			getEntity().setCitationMicroReference(text_referenceDetail.getText());
93
		}
89

  
90

  
94 91
	}
95 92

  
96 93
	@Override
......
100 97
        }
101 98
		super.setBackground(color);
102 99
	}
100

  
101
    @Override
102
    public SelectionArbitrator getSelectionArbitrator() {
103
        // TODO Auto-generated method stub
104
        return null;
105
    }
103 106
}

Also available in: Unified diff