Revision eaa9ba52
Added by Patrick Plitzner about 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractCdmEntityWizardPage.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 |
*/ |
... | ... | |
28 | 28 |
* <p> |
29 | 29 |
* Abstract AbstractCdmEntityWizardPage class. |
30 | 30 |
* </p> |
31 |
*
|
|
31 |
* |
|
32 | 32 |
* @author n.hoffmann |
33 | 33 |
* @created Jun 1, 2010 |
34 | 34 |
* @version 1.0 |
... | ... | |
46 | 46 |
* <p> |
47 | 47 |
* Constructor for AbstractCdmEntityWizardPage. |
48 | 48 |
* </p> |
49 |
*
|
|
49 |
* |
|
50 | 50 |
* @param formFactory |
51 | 51 |
* a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} |
52 | 52 |
* object. |
... | ... | |
82 | 82 |
|
83 | 83 |
/* |
84 | 84 |
* (non-Javadoc) |
85 |
*
|
|
85 |
* |
|
86 | 86 |
* @see |
87 | 87 |
* org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets |
88 | 88 |
* .Composite) |
... | ... | |
115 | 115 |
* <p> |
116 | 116 |
* Getter for the field <code>entity</code>. |
117 | 117 |
* </p> |
118 |
*
|
|
118 |
* |
|
119 | 119 |
* @return a T object. |
120 | 120 |
*/ |
121 | 121 |
public T getEntity() { |
... | ... | |
124 | 124 |
|
125 | 125 |
/** |
126 | 126 |
* Creates the detail element for this wizard page |
127 |
*
|
|
127 |
* |
|
128 | 128 |
* @param rootElement |
129 | 129 |
* a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} |
130 | 130 |
* object. |
... | ... | |
169 | 169 |
if (event.getSource() == getDetailElement()) { |
170 | 170 |
checkComplete(); |
171 | 171 |
} |
172 |
else if(event.getSource() instanceof AbstractCdmDetailElement){ |
|
173 |
//check if parent element is set as detail element |
|
174 |
ICdmFormElement formElement = (ICdmFormElement) event.getSource(); |
|
175 |
while(formElement.getParentElement()!=null){ |
|
176 |
if(formElement.getParentElement() == getDetailElement()){ |
|
177 |
checkComplete(); |
|
178 |
return; |
|
179 |
} |
|
180 |
formElement = formElement.getParentElement(); |
|
181 |
} |
|
182 |
} |
|
172 | 183 |
} |
173 | 184 |
|
174 | 185 |
/** |
... | ... | |
191 | 202 |
* <p> |
192 | 203 |
* getConversationHolder |
193 | 204 |
* </p> |
194 |
*
|
|
205 |
* |
|
195 | 206 |
* @return a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} |
196 | 207 |
* object. |
197 | 208 |
*/ |
... | ... | |
214 | 225 |
* <p> |
215 | 226 |
* Getter for the field <code>detailElement</code>. |
216 | 227 |
* </p> |
217 |
*
|
|
228 |
* |
|
218 | 229 |
* @return a |
219 | 230 |
* {@link eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement} |
220 | 231 |
* object. |
Also available in: Unified diff
Allow creating new taxa in taxon selection dialog #2402