Revision 4e34a1f2
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/PersonWizardPage.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.ui.section.agent; |
11 | 11 |
|
12 |
import org.apache.commons.lang.StringUtils; |
|
12 | 13 |
import org.eclipse.swt.SWT; |
13 | 14 |
|
14 | 15 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
16 |
import eu.etaxonomy.cdm.model.agent.AgentBase; |
|
15 | 17 |
import eu.etaxonomy.cdm.model.agent.Person; |
16 | 18 |
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage; |
17 | 19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
51 | 53 |
personElement.setEntity(entity); |
52 | 54 |
return personElement; |
53 | 55 |
} |
56 |
|
|
57 |
@Override |
|
58 |
protected boolean titleCacheIsNotEmpty() { |
|
59 |
if (getEntity() instanceof AgentBase) { |
|
60 |
|
|
61 |
|
|
62 |
return !StringUtils.isEmpty(entity.getTitleCache()); |
|
63 |
} |
|
64 |
return true; |
|
65 |
} |
|
54 | 66 |
} |
Also available in: Unified diff
ref #7143: enable finish in create person dialog if titleCache is set