Project

General

Profile

« Previous | Next » 

Revision 3b975922

Added by Katja Luther over 5 years ago

ref #7793: add DB preferences to hide specimen and import issues and smaller changes in db preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/NameDetailsViewConfiguration.java
62 62
        isSimpleDetailsViewActivated = nameDetailsConfig.isSimpleDetailsViewActivated();
63 63
        activateCheckButton.setSelection(isSimpleDetailsViewActivated);
64 64
        activateCheckButton.addSelectionListener(new SelectionAdapter(){
65
        @Override
66
        public void widgetSelected(SelectionEvent e) {
67
            isSimpleDetailsViewActivated = activateCheckButton.getSelection();
68
           //
69
            if(isSimpleDetailsViewActivated){
70
                dbSettings.setVisible(true);
71
                dbSettings.setEnabled(true);
72
            }else{
73
                dbSettings.setVisible(false);
74
                dbSettings.setEnabled(false);
75
            }
76
         }
65
            @Override
66
            public void widgetSelected(SelectionEvent e) {
67
                isSimpleDetailsViewActivated = activateCheckButton.getSelection();
68
               //
69
                if(isSimpleDetailsViewActivated){
70
                    dbSettings.setVisible(true);
71
                    dbSettings.setEnabled(true);
72
                }else{
73
                    dbSettings.setVisible(false);
74
                    dbSettings.setEnabled(false);
75
                }
76
             }
77 77
         });
78 78

  
79 79

  
......
90 90

  
91 91
        final Button allowLocalPreference = new Button(dbSettings, SWT.CHECK);
92 92
//      boolean isUseLocalPreference = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.ALLOW_OVERRIDE_NAME_DETAILS);
93
      allowLocalPreference.setText(Messages.DatabasePreferencesPage_UseLocalPreferences);
94
      isAllowOverride = nameDetailsConfig.isAllowOverride();
95
      allowLocalPreference.setSelection(isAllowOverride);
96
      allowLocalPreference.addSelectionListener(new SelectionAdapter(){
93
        allowLocalPreference.setText(Messages.DatabasePreferencesPage_UseLocalPreferences);
94
        isAllowOverride = nameDetailsConfig.isAllowOverride();
95
        allowLocalPreference.setSelection(isAllowOverride);
96
        allowLocalPreference.addSelectionListener(new SelectionAdapter(){
97 97
           @Override
98 98
           public void widgetSelected(SelectionEvent e) {
99 99
               isAllowOverride = allowLocalPreference.getSelection();
100 100

  
101 101
            }
102
       });
102
        });
103 103
        Label separator= new Label(dbSettings, SWT.HORIZONTAL | SWT.SEPARATOR);
104 104
        separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
105 105
        final Button showTaxon = new Button(dbSettings, SWT.CHECK);
......
288 288
             @Override
289 289
             public void widgetSelected(SelectionEvent e) {
290 290
                 isShowNameApprobiation = showNameApprobiation.getSelection();
291
                 PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION, isShowNameApprobiation);
291
                //PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION, isShowNameApprobiation);
292 292
              }
293 293
         });
294 294

  

Also available in: Unified diff