Project

General

Profile

« Previous | Next » 

Revision 3401aff4

Added by Patrick Plitzner over 6 years ago

ref #7006 Avoid multiple warnings when opening prefs with no session

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/matching/AbstractMatchingPreferences.java
26 26
import eu.etaxonomy.cdm.strategy.match.IMatchStrategy;
27 27
import eu.etaxonomy.cdm.strategy.match.MatchException;
28 28
import eu.etaxonomy.cdm.strategy.match.MatchMode;
29
import eu.etaxonomy.taxeditor.model.MessagingUtils;
30 29
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
31 30
import eu.etaxonomy.taxeditor.store.CdmStore;
32 31

  
......
60 59
	 */
61 60
	@Override
62 61
	protected void createFieldEditors() {
63
	    if(!CdmStore.isActive()) {
64
            MessagingUtils.noDataSourceWarningDialog(null);
65
        }else{
62
	    if(CdmStore.isActive()) {
66 63
            for(String fieldName : getFieldNames()){
67 64
                String[][] comboValues = new String[getMatchModeList().size()][2];
68 65
                for (int i=0;i<getMatchModeList().size();i++) {

Also available in: Unified diff