Revision 6ed48b2e
Added by Patrick Plitzner over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/TaxonNodeSelectionElement.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2009 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
26 | 26 |
public class TaxonNodeSelectionElement extends EntitySelectionElement<TaxonNode> { |
27 | 27 |
|
28 | 28 |
private Classification classification; |
29 |
|
|
29 |
|
|
30 | 30 |
public TaxonNodeSelectionElement(CdmFormFactory formFactory, |
31 | 31 |
ConversationHolder conversation, ICdmFormElement parentElement, |
32 | 32 |
String labelString, TaxonNode entity, int mode, int style) { |
33 |
super(formFactory, conversation, parentElement, labelString, entity, mode, |
|
33 |
super(formFactory, conversation, parentElement, TaxonNode.class, labelString, entity, mode,
|
|
34 | 34 |
style); |
35 | 35 |
} |
36 |
|
|
36 |
|
|
37 | 37 |
/** |
38 | 38 |
* @return |
39 | 39 |
*/ |
40 | 40 |
public Classification getClassification() { |
41 | 41 |
return classification; |
42 | 42 |
} |
43 |
|
|
43 |
|
|
44 | 44 |
public void setClassification(Classification classification){ |
45 | 45 |
this.classification = classification; |
46 | 46 |
} |
47 |
|
|
47 |
|
|
48 | 48 |
/* |
49 | 49 |
* (non-Javadoc) |
50 |
*
|
|
50 |
* |
|
51 | 51 |
* @see |
52 | 52 |
* org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt |
53 | 53 |
* .events.SelectionEvent) |
... | ... | |
59 | 59 |
getConversationHolder(), "Select parent taxon", null, null, getClassification()); |
60 | 60 |
setSelectionInternal(newSelection); |
61 | 61 |
} |
62 |
|
|
62 |
|
|
63 | 63 |
/* |
64 | 64 |
* (non-Javadoc) |
65 |
*
|
|
65 |
* |
|
66 | 66 |
* @see |
67 | 67 |
* eu.etaxonomy.taxeditor.forms.selection.AbstractSelectionElement#getTitle |
68 | 68 |
* () |
Also available in: Unified diff
ref #6283 Fixed potential NPE for EntitySelectionElement