Revision a4063890
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewPolytomousKeyWizard.java | ||
---|---|---|
4 | 4 |
package eu.etaxonomy.taxeditor.newWizard; |
5 | 5 |
|
6 | 6 |
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService; |
7 |
import eu.etaxonomy.cdm.common.CdmUtils; |
|
7 | 8 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
8 | 9 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
9 | 10 |
|
... | ... | |
30 | 31 |
*/ |
31 | 32 |
@Override |
32 | 33 |
protected void saveEntity() { |
33 |
if(!polytomousKeyPage.getPolytomousKeyName().equals("")) {
|
|
34 |
if(CdmUtils.isNotBlank(polytomousKeyPage.getPolytomousKeyName())) {
|
|
34 | 35 |
CdmStore.getService(IPolytomousKeyService.class).merge(getEntity(), true); |
35 | 36 |
} |
36 | 37 |
} |
... | ... | |
50 | 51 |
return "Polytomous Key"; |
51 | 52 |
} |
52 | 53 |
|
54 |
@Override |
|
55 |
public boolean canFinish() { |
|
56 |
if(CdmUtils.isBlank(polytomousKeyPage.getPolytomousKeyName())) { |
|
57 |
return false; |
|
58 |
} |
|
59 |
return super.canFinish(); |
|
60 |
} |
|
61 |
|
|
53 | 62 |
} |
Also available in: Unified diff
ref #7923 Use character transfer instead of LocalSelectionTransfer