Project

General

Profile

« Previous | Next » 

Revision a06ac8f6

Added by Patrick Plitzner about 5 years ago

ref #8147 Enable "Finish" only if any data is present

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/TermTranslationWizard.java
66 66

  
67 67
        return true;
68 68
    }
69

  
70
    /**
71
     * {@inheritDoc}
72
     */
73
    @Override
74
    public boolean canFinish() {
75
        Representation representation = page.getTargetRepresentation();
76
        if (representation==null || representation.getLanguage() == null){
77
            return false;
78
        }
79
        return CdmUtils.isNotBlank(representation.getText())
80
                || CdmUtils.isNotBlank(representation.getLabel())
81
                || CdmUtils.isNotBlank(representation.getAbbreviatedLabel())
82
                || CdmUtils.isNotBlank(representation.getPlural());
83
    }
69 84
}

Also available in: Unified diff