Project

General

Profile

« Previous | Next » 

Revision d31115e0

Added by Niels Hoffmann over 13 years ago

added a readme file

View differences:

taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/forms/selection/ClassificationSelectionElement.java
13 13
import org.eclipse.swt.events.SelectionEvent;
14 14

  
15 15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16
import eu.etaxonomy.cdm.model.taxon.TaxonomicTree;
16
import eu.etaxonomy.cdm.model.taxon.Classification;
17 17
import eu.etaxonomy.taxeditor.dialogs.filteredSelection.FilteredClassificationSelectionDialog;
18 18
import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
19 19
import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
......
25 25
 * @created Sep 27, 2010
26 26
 * @version 1.0
27 27
 */
28
public class ClassificationSelectionElement extends AbstractSelectionElement<TaxonomicTree> {
28
public class ClassificationSelectionElement extends AbstractSelectionElement<Classification> {
29 29

  
30 30
	/**
31 31
	 * <p>Constructor for ClassificationSelectionElement.</p>
......
39 39
	 */
40 40
	public ClassificationSelectionElement(CdmFormFactory formFactory,
41 41
			ConversationHolder conversation, ICdmFormElement parentElement,
42
			String labelString, TaxonomicTree entity, int style) {
42
			String labelString, Classification entity, int style) {
43 43
		super(formFactory, conversation, parentElement, labelString, entity,
44 44
				false, false, true, style);
45 45
	}
......
50 50
	/** {@inheritDoc} */
51 51
	@Override
52 52
	public void widgetSelected(SelectionEvent e) {
53
		TaxonomicTree newSelection = FilteredClassificationSelectionDialog.select(getShell(), getConversationHolder());
53
		Classification newSelection = FilteredClassificationSelectionDialog.select(getShell(), getConversationHolder());
54 54
		setSelectionInternal(newSelection);
55 55
	}
56 56

  

Also available in: Unified diff