Project

General

Profile

Revision ded7a114

IDded7a1143708081c2dd431bd06ac6b1d09f6eb44
Parent fd3565e6
Child 8dcb3ae4

Added by Katja Luther over 3 years ago

fix #7312: language preference should not be saved immediately

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/LanguageEditorPreferencePage.java
26 26
import org.eclipse.ui.PlatformUI;
27 27

  
28 28
import eu.etaxonomy.taxeditor.l10n.Messages;
29
import eu.etaxonomy.taxeditor.model.MessagingUtils;
30 29
import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
31 30

  
32 31
/**
......
76 75

  
77 76
            @Override
78 77
            public void widgetSelected(SelectionEvent e) {
79
                try {
80
                    preferencesUtil.writePropertyToConfigFile(combo.getSelectionIndex());
78
//                try {
79
//                    preferencesUtil.writePropertyToConfigFile(combo.getSelectionIndex());
81 80
                    if(initalSelectionIndex != combo.getSelectionIndex()) {
82 81
                        isSelectionChanged = true;
83 82
                    }else{
84 83
                        isSelectionChanged = false;
85 84
                    }
86
                } catch (IOException e1) {
87
                    MessagingUtils.messageDialog("Failed to write Config.ini", LanguageEditorPreferencePage.class,
88
                            "Language switch failed, because could not write to Folder. No writing permissions!", null);
89
                }
85
//                } catch (IOException e1) {
86
//                    MessagingUtils.messageDialog("Failed to write Config.ini", LanguageEditorPreferencePage.class,
87
//                            "Language switch failed, because could not write to Folder. No writing permissions!", null);
88
//                }
90 89
            }
91 90

  
92 91
            @Override

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)